﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f8f5 50%, #d1f2eb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animated background elements */
.bg-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.decoration-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #52c41a, #73d13d);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.decoration-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #00a76f, #36cfc9);
    top: 70%;
    right: 15%;
    animation-delay: 2s;
}

.decoration-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #95de64, #b7eb8f);
    top: 30%;
    right: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(120deg);
    }

    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 167, 111, 0.1), 0 15px 35px rgba(82, 196, 26, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: translateY(0);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 167, 111, 0.2));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 8px rgba(0, 167, 111, 0.2));
    }

    50% {
        filter: drop-shadow(0 6px 12px rgba(82, 196, 26, 0.3));
    }
}

.welcome-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00a76f, #52c41a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

    .form-input:focus {
        outline: none;
        border-color: #52c41a;
        box-shadow: 0 0 0 4px rgba(82, 196, 26, 0.1);
        background: rgba(255, 255, 255, 1);
        transform: translateY(-1px);
    }

    .form-input::placeholder {
        color: #9ca3af;
    }

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

    .toggle-password:hover {
        color: #52c41a;
    }

.forgot-password {
    text-align: right;
    margin-bottom: 2rem;
}

    .forgot-password a {
        color: #00a76f;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .forgot-password a:hover {
            color: #52c41a;
            text-decoration: underline;
        }

.login-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #52c41a, #00a76f);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .login-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s;
    }

    .login-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(82, 196, 26, 0.3);
    }

        .login-button:hover::before {
            left: 100%;
        }

    .login-button:active {
        transform: translateY(0);
    }

.divider {
    margin: 2rem 0;
    position: relative;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(to right, transparent, #e5e7eb, transparent);
    }

    .divider span {
        background: rgba(255, 255, 255, 0.95);
        padding: 0 1rem;
    }

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
    font-size: 0.95rem;
}

    .register-link a {
        color: #00a76f;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

        .register-link a:hover {
            color: #52c41a;
            text-decoration: underline;
        }

.social-login {
    margin-top: 1.5rem;
}

.social-button {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

    .social-button:hover {
        border-color: #52c41a;
        background: rgba(255, 255, 255, 1);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(82, 196, 26, 0.1);
    }

/* Responsive design */
@media (max-width: 480px) {
    .login-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .welcome-text {
        font-size: 1.5rem;
    }
}

/* Loading state */
.loading {
    pointer-events: none;
}

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        border: 2px solid transparent;
        border-top: 2px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

