﻿/* Login.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(46, 125, 50, 0.3); /* Subtle green matching #2e7d32 */
    border-radius: 3px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-button {
    display: none; /* Remove track and arrows */
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%); /* Matches header/sidebar green */
    position: relative;
    overflow-x: hidden;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    animation: float 15s infinite linear;
    opacity: 0.5;
}

    .particle:nth-child(1) {
        width: 10px;
        height: 10px;
        left: 5%;
        top: 95%;
        animation-duration: 20s;
    }

    .particle:nth-child(2) {
        width: 8px;
        height: 8px;
        left: 10%;
        top: 85%;
        animation-duration: 18s;
    }

    .particle:nth-child(3) {
        width: 12px;
        height: 12px;
        left: 15%;
        top: 75%;
        animation-duration: 22s;
    }

    .particle:nth-child(4) {
        width: 6px;
        height: 6px;
        left: 20%;
        top: 65%;
        animation-duration: 16s;
    }

    .particle:nth-child(5) {
        width: 9px;
        height: 9px;
        left: 25%;
        top: 55%;
        animation-duration: 19s;
    }

    .particle:nth-child(6) {
        width: 7px;
        height: 7px;
        left: 30%;
        top: 45%;
        animation-duration: 17s;
    }

    .particle:nth-child(7) {
        width: 11px;
        height: 11px;
        left: 35%;
        top: 35%;
        animation-duration: 21s;
    }

    .particle:nth-child(8) {
        width: 8px;
        height: 8px;
        left: 40%;
        top: 25%;
        animation-duration: 15s;
    }

    .particle:nth-child(9) {
        width: 10px;
        height: 10px;
        left: 45%;
        top: 15%;
        animation-duration: 20s;
    }

    .particle:nth-child(10) {
        width: 6px;
        height: 6px;
        left: 50%;
        top: 5%;
        animation-duration: 18s;
    }

    .particle:nth-child(11) {
        width: 9px;
        height: 9px;
        left: 55%;
        top: 95%;
        animation-duration: 14s;
    }

    .particle:nth-child(12) {
        width: 7px;
        height: 7px;
        left: 60%;
        top: 85%;
        animation-duration: 17s;
    }

    .particle:nth-child(13) {
        width: 11px;
        height: 11px;
        left: 65%;
        top: 75%;
        animation-duration: 23s;
    }

    .particle:nth-child(14) {
        width: 5px;
        height: 5px;
        left: 70%;
        top: 65%;
        animation-duration: 15s;
    }

    .particle:nth-child(15) {
        width: 8px;
        height: 8px;
        left: 75%;
        top: 55%;
        animation-duration: 19s;
    }

    .particle:nth-child(16) {
        width: 10px;
        height: 10px;
        left: 80%;
        top: 45%;
        animation-duration: 21s;
    }

    .particle:nth-child(17) {
        width: 6px;
        height: 6px;
        left: 85%;
        top: 35%;
        animation-duration: 16s;
    }

    .particle:nth-child(18) {
        width: 9px;
        height: 9px;
        left: 90%;
        top: 25%;
        animation-duration: 18s;
    }

    .particle:nth-child(19) {
        width: 7px;
        height: 7px;
        left: 95%;
        top: 15%;
        animation-duration: 20s;
    }

    .particle:nth-child(20) {
        width: 4px;
        height: 4px;
        left: 10%;
        top: 100%;
        animation-duration: 12s;
    }

    .particle:nth-child(21) {
        width: 8px;
        height: 8px;
        left: 15%;
        top: 90%;
        animation-duration: 15s;
    }

    .particle:nth-child(22) {
        width: 10px;
        height: 10px;
        left: 20%;
        top: 80%;
        animation-duration: 19s;
    }

    .particle:nth-child(23) {
        width: 6px;
        height: 6px;
        left: 25%;
        top: 70%;
        animation-duration: 17s;
    }

    .particle:nth-child(24) {
        width: 9px;
        height: 9px;
        left: 30%;
        top: 60%;
        animation-duration: 21s;
    }

    .particle:nth-child(25) {
        width: 7px;
        height: 7px;
        left: 35%;
        top: 50%;
        animation-duration: 16s;
    }

    .particle:nth-child(26) {
        width: 11px;
        height: 11px;
        left: 40%;
        top: 40%;
        animation-duration: 22s;
    }

    .particle:nth-child(27) {
        width: 5px;
        height: 5px;
        left: 45%;
        top: 95%;
        animation-duration: 14s;
    }

    .particle:nth-child(28) {
        width: 8px;
        height: 8px;
        left: 50%;
        top: 85%;
        animation-duration: 18s;
    }

    .particle:nth-child(29) {
        width: 10px;
        height: 10px;
        left: 55%;
        top: 75%;
        animation-duration: 20s;
    }

    .particle:nth-child(30) {
        width: 6px;
        height: 6px;
        left: 60%;
        top: 100%;
        animation-duration: 15s;
    }

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.5;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0.5;
    }
}

.page-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.container {
    max-width: 600px; /* Compact for centered layout */
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

.content-center {
    max-width: 600px;
    width: 100%;
    text-align: center;
    animation: fade-scale 1s ease-out forwards;
}

.login-header {
    margin-bottom: 24px;
}

.intro-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 700;
    color: #333333; /* Black for legibility */
    margin-bottom: 12px;
    line-height: 1.2;
}

.intro-subtitle {
    font-family: 'Roboto', sans-serif;
    display: block;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-weight: 300;
    color: #333333; /* Black for legibility */
    margin-top: 12px;
    line-height: 1.5;
}

.login-card {
    background: #f5f5f5; /* Off-white background */
    padding: clamp(20px, 5vw, 32px);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .login-card:hover {
        transform: translateY(-4px);
    }

.form-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    font-weight: 700;
    color: #333333; /* Black text */
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

    .form-title::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 3px;
        background: #2e7d32; /* Green accent */
        border-radius: 2px;
    }

.form-group {
    margin-bottom: 20px;
}

.form-heading {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 700;
    color: #333333; /* Black text */
    margin-bottom: 8px;
    display: block;
}

.form-input {
    width: 100%;
    padding: clamp(10px, 3vw, 14px) 16px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    background: #ffffff;
    color: #333333; /* Black text */
    transition: all 0.3s ease;
}

    .form-input:focus {
        outline: none;
        border-color: #2e7d32; /* Green accent */
        box-shadow: 0 0 10px rgba(46, 125, 50, 0.4);
    }

    .form-input::placeholder {
        color: #666666;
        opacity: 0.8;
    }

.form-help {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #666666; /* Darker gray for help text */
    margin-top: 8px;
    display: block;
}

.form-error {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #d32f2f;
    margin-top: 8px;
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-input {
    width: clamp(16px, 4vw, 20px);
    height: clamp(16px, 4vw, 20px);
    cursor: pointer;
    accent-color: #2e7d32; /* Green accent */
}

.checkbox-label {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #333333; /* Black text */
}

.form-actions {
    margin-top: 16px;
}

.submit-button {
    width: 100%;
    padding: clamp(10px, 3vw, 12px);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    background: #2e7d32; /* Green accent */
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .submit-button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }

    .submit-button:hover::before {
        width: 200px;
        height: 200px;
    }

    .submit-button:hover {
        background: #1b5e20; /* Darker green for hover */
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .submit-button:active {
        transform: translateY(0);
        box-shadow: none;
    }

.error-message {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #d32f2f;
    margin-top: 16px;
    text-align: center;
}

.social-links {
    margin-top: 24px;
    animation: fade-in 1s ease-out forwards;
}

.social-text {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #333333; /* Black for legibility */
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(40px, 10vw, 48px);
    height: clamp(40px, 10vw, 48px);
    border-radius: 50%;
    background: #2e7d32; /* Green background by default */
    color: #f5f5f5; /* White icons */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: fade-in 0.5s ease-out forwards;
}

    .social-icon:nth-child(1) {
        animation-delay: 0.4s;
    }

    .social-icon:nth-child(2) {
        animation-delay: 0.5s;
    }

    .social-icon:nth-child(3) {
        animation-delay: 0.6s;
    }

    .social-icon:nth-child(4) {
        animation-delay: 0.7s;
    }

    .social-icon:hover {
        background: #1b5e20; /* Darker green for hover */
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .social-icon svg {
        width: clamp(24px, 6vw, 28px);
        height: clamp(24px, 6vw, 28px);
    }

.footer {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    color: #e0e0e0;
    padding: 20px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    opacity: 0.8;
}

@keyframes fade-scale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 500px;
    }

    .login-card {
        padding: clamp(16px, 4vw, 24px);
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 90%;
    }

    .login-card {
        padding: clamp(12px, 3vw, 20px);
    }

    .particle {
        width: 6px !important;
        height: 6px !important;
    }
}

@media (max-width: 360px) {
    .container {
        max-width: 95%;
    }

    .login-card {
        padding: 12px;
    }
}
