:root {
    --primary: #2d3436;
    --accent: #20b2aa;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #3cb371 100%);
    position: relative;
}

/* Background Image Layer */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/login/assets/Background_img.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Animated Gradient Overlay */
/* .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.2) 0%, 
        rgba(118, 75, 162, 0.2) 50%,
        rgba(253, 121, 168, 0.15) 100%);
    z-index: 2;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.3; }
} */

/* Main Container */
.container {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

/* Form Container with Glass Effect */
.form-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 50px 45px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Switching */
.form-wrapper {
    position: relative;
}

.form {
    display: none;
    animation: formSlide 0.4s ease-out;
}

.form.active {
    display: block;
}

@keyframes formSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Typography */
h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    font-size: 0.95rem;
    font-weight: 300;
}

/* Input Groups */
.input-group {
    margin-bottom: 25px;
    position: relative;
    transition: transform 0.3s ease;
}

label {
    display: block;
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

input {
    width: 100%;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    font-weight: 500;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(253, 121, 168, 0.2);
    color: #ffffff;
}

/* Button */
.btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(134deg, #0e4c11 10% 0%, #00eaff4d 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(32, 178, 170, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(32, 178, 170, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Toggle Link */
.toggle-form {
    text-align: center;
    margin-top: 25px;
    color: #20b2aa;
    font-size: 0.9rem;
}

.toggle-form a {
    color: #242a2c;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.toggle-form a:hover {
    border-bottom: 2px solid var(--accent);
}

/* Forgot Password */
.forgot-password {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 25px;
}

.forgot-password a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: var(--accent);
}

/* Error Message */
.error-message {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.error-message.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Message */
.success-message {
    background: rgba(46, 213, 115, 0.2);
    border: 1px solid rgba(46, 213, 115, 0.4);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.success-message.show {
    display: block;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Decorative Elements */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    opacity: 0.1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(32, 178, 170, 0.3), transparent);
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(60, 179, 113, 0.3), transparent);
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
}

/* Responsive */
@media (max-width: 480px) {
    .form-container {
        padding: 40px 30px;
    }

    h2 {
        font-size: 2rem;
    }
}