
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(-45deg, #10b981, #06b6d4, #34d399, #059669);
    background-size: 200% 200%;
    animation: gradientFlow 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.wave-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.wave {
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform-origin: center;
}

.wave-1 {
    animation: waveMove 20s linear infinite;
    animation-delay: 0s;
}

.wave-2 {
    animation: waveMove 25s linear infinite reverse;
    animation-delay: -5s;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}

.wave-3 {
    animation: waveMove 30s linear infinite;
    animation-delay: -10s;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.wave-4 {
    animation: waveMove 35s linear infinite reverse;
    animation-delay: -15s;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
}

@keyframes waveMove {
    0% {
        transform: translateX(-50%) skewX(-5deg);
    }

    100% {
        transform: translateX(50%) skewX(-5deg);
    }
}

/* Gradient Particles */
.gradient-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255,255,255,0.8), transparent);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

    .particle:nth-child(1) {
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }

    .particle:nth-child(2) {
        top: 60%;
        left: 80%;
        animation-delay: -3s;
    }

    .particle:nth-child(3) {
        top: 80%;
        left: 20%;
        animation-delay: -6s;
    }

    .particle:nth-child(4) {
        top: 30%;
        left: 70%;
        animation-delay: -9s;
    }

    .particle:nth-child(5) {
        top: 10%;
        left: 60%;
        animation-delay: -12s;
    }

    .particle:nth-child(6) {
        top: 70%;
        left: 40%;
        animation-delay: -15s;
    }

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    10%, 90% {
        opacity: 1;
    }

    50% {
        transform: translateY(-100px) translateX(50px) scale(1.5);
    }
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    object-position: center top;
    margin-top: 40px;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in-out;
}

.logo-wrapper .logo-icon {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 255, 128, 0.4));
}

.login-container {
    width: 100%;
    max-width: 400px;
    perspective: 1000px;
}

.login-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

    .login-header h2 {
        color: #1a202c;
        font-size: 1.75rem;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .login-header p {
        color: #718096;
        font-size: 14px;
        font-weight: 400;
    }

/* Form Group & Input Styles */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

    .input-wrapper input {
        background: #ffffff;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        padding: 12px 16px;
        color: #1a202c;
        font-size: 16px;
        font-weight: 400;
        transition: all 0.2s ease;
        width: 100%;
        outline: none;
    }

        .input-wrapper input:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .input-wrapper input:focus + label,
        .input-wrapper input:valid + label {
            transform: translateY(-32px) scale(0.85);
            color: #3b82f6;
            font-weight: 500;
        }

            .input-wrapper input:focus + label,
            .input-wrapper input.filled + label {
                transform: translateY(-32px) scale(0.85);
                color: #10b981; /* your green accent */
                font-weight: 500;
            }
    .input-wrapper label {
        transition: all 0.3s ease;
    }

input:not(:placeholder-shown) + label,
input:focus + label,
input.filled + label {
    transform: translateY(-8px) scale(0.85);
    color: #10b981;
    font-weight: 500;
}

    .input-wrapper label {
        position: absolute;
        left: 16px;
        top: 12px;
        color: #718096;
        font-size: 16px;
        font-weight: 400;
        transition: all 0.2s ease;
        pointer-events: none;
        transform-origin: left top;
        background: #ffffff;
        padding: 0 4px;
    }

    /* Password Toggle */
    .input-wrapper .password-toggle {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        color: #718096;
        transition: color 0.2s ease;
        z-index: 2;
    }

        .input-wrapper .password-toggle:hover {
            color: #3b82f6;
        }

.toggle-icon {
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23718096' stroke-width='1.5'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.2s ease;
}

.password-toggle:hover .toggle-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233b82f6' stroke-width='1.5'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3e%3c/svg%3e");
}

.toggle-icon.show-password {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23718096' stroke-width='1.5'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 11-4.243-4.243m4.242 4.242L9.88 9.88'/%3e%3c/svg%3e");
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.remember-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .remember-wrapper input[type="checkbox"] {
        display: none;
    }

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: #ffffff;
}

.remember-wrapper input[type="checkbox"]:checked + .checkbox-label .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

    .remember-wrapper input[type="checkbox"]:checked + .checkbox-label .checkmark::after {
        content: '✓';
        color: white;
        font-size: 10px;
        font-weight: bold;
    }

.checkbox-label {
    color: #4a5568;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .forgot-password:hover {
        color: #2563eb;
    }

/* Login Button */
.login-btn {
    width: 100%;
    background: #3b82f6;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 24px;
}

    .login-btn:hover {
        background: #2563eb;
        transform: translateY(-1px);
        box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
    }

    .login-btn:active {
        transform: translateY(0);
    }

    /* Loading State */
    .login-btn.loading {
        pointer-events: none;
        background: #9ca3af;
    }

.btn-text {
    transition: opacity 0.2s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    opacity: 0;
    animation: spin 1s linear infinite;
    transition: opacity 0.2s ease;
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loader {
    opacity: 1;
}

/* Error States */
.error-message {
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    margin-left: 4px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

    .error-message.show {
        opacity: 1;
        transform: translateY(0);
    }

.form-group.error .input-wrapper input {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 32px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

    .success-message.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

.success-icon {
    width: 48px;
    height: 48px;
    background: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin: 0 auto 16px;
}

.success-message h3 {
    color: #1a202c;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.success-message p {
    color: #718096;
    font-size: 14px;
}

/* Signup Link */
.signup-link {
    text-align: center;
}

    .signup-link p {
        color: #718096;
        font-size: 14px;
    }

    .signup-link a {
        color: #3b82f6;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

        .signup-link a:hover {
            color: #2563eb;
        }

/* Animations */
@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .login-card {
        padding: 24px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}