﻿/* Login.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #00b359 0%, #00994d 100%); /* Darker green gradient */
    position: relative;
    overflow: hidden;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5); /* White particles with transparency */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3); /* Subtle glow */
    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;
}

.header-bar {
    height: 80px;
    width: 100%;
    background: linear-gradient(135deg, #00b359 0%, #00994d 100%); /* Darker green gradient */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 0 16px;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

    .logo-link:hover {
        transform: translateY(-2px) scale(1.05);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }

.logo {
    height: 50px;
    max-width: 150px;
    animation: slide-in 1s ease-out;
}

@keyframes slide-in {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.content-wrapper {
    flex: 1;
    padding: 60px 0;
    display: flex;
    align-items: center;
    position: relative;
}

.content-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    align-items: center;
}

.intro-section {
    color: #f5f5f5;
    position: relative;
    animation: fade-slide-up 1s ease-out forwards;
}

.intro-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.intro-subtitle {
    font-family: 'Roboto', sans-serif;
    display: block;
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.7;
    margin-top: 20px;
    line-height: 1.6;
}

.social-links {
    margin-top: 56px;
    animation: fade-slide-up 1s ease-out 0.2s forwards;
    opacity: 0;
}

.social-text {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 24px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 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: #00b359; /* Darker green for hover */
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .social-icon svg {
        width: 28px;
        height: 28px;
    }

.login-section {
    margin-left: auto;
    animation: fade-scale 1s ease-out forwards;
}

.login-card {
    background: rgba(60, 65, 70, 0.95);
    padding: 32px 48px 24px 48px;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

    .login-card:hover {
        transform: translateY(-4px);
    }

.form-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #f5f5f5;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

    .form-title::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-75%);
        width: 30px;
        height: 3px;
        background: #00b359; /* Darker green for underline */
        border-radius: 2px;
    }

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-heading {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 8px;
    display: block;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    transition: all 0.3s ease;
}

    .form-input:focus {
        outline: none;
        border-color: #00b359; /* Darker green for focus */
        box-shadow: 0 0 10px rgba(0, 179, 89, 0.4); /* Adjusted for darker green */
    }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #00b359; /* Darker green for checkbox */
}

.checkbox-label {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.form-actions {
    margin-top: 20px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background: #00b359; /* Darker green for button */
    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: #00994d; /* 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;
    color: #ff4d4f;
    font-size: 0.9rem;
    margin-top: 16px;
    text-align: center;
}

.footer {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    color: #e0e0e0;
    padding: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes fade-slide-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@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) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-section {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .login-section {
        margin: 0 auto;
        max-width: 400px;
        width: 100%;
    }

    .login-card {
        padding: 24px 40px 20px 40px;
    }
}

@media (max-width: 576px) {
    .header-bar {
        height: 64px;
    }

    .logo {
        height: 40px;
    }

    .intro-title {
        font-size: 2.25rem;
    }

    .intro-subtitle {
        font-size: 1.1rem;
    }

    .login-section {
        margin: 0 auto;
        max-width: 90%;
    }

    .login-card {
        padding: 20px 32px 16px 32px;
    }

    .form-title {
        font-size: 1.75rem;
    }

    .particle {
        width: 6px !important;
        height: 6px !important;
    }
}
