﻿/* ===========================
   Global
=========================== */

* {
    font-family: 'Poppins', sans-serif;
}

/* ===========================
   Modal
=========================== */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
}

.login-card {
    position: relative;
    width: 420px;
    padding: 35px 40px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    animation: popup 0.25s ease;
}

.close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    border: none;
    background: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
}

/* ===========================
   Header
=========================== */

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

    .login-header h1 {
        margin: 0;
        color: #27364B;
        font-size: 28px;
        font-weight: 700;
    }

    .login-header p {
        margin-top: 6px;
        color: #7B8BA5;
        font-size: 15px;
    }

.loginError {
    text-align: center;
}
/* ===========================
   Form
=========================== */
.form-group {
    margin-bottom: 22px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #4B5563;
        font-size: 15px;
        font-weight: 600;
    }

    .form-group input {
        width: 100%;
        height: 48px;
        padding: 0 16px;
        border: 1px solid #D8DFEA;
        border-radius: 10px;
        box-sizing: border-box;
        outline: none;
        font-size: 15px;
    }

        .form-group input:focus {
            border-color: #7C3AED;
        }

/* ===========================
   Password
=========================== */

.password-container {
    position: relative;
}

    .password-container input {
        padding-right: 50px;
    }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #8B8B8B;
    font-size: 17px;
    cursor: pointer;
}

    .password-toggle:hover {
        color: #7C3AED;
    }

/* ===========================
   Buttons
=========================== */

.login-btn {
    width: 100%;
    height: 48px;
    margin-top: 10px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #6D28D9, #8B5CF6);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

    .login-btn:hover {
        opacity: 0.95;
    }

/* ===========================
   Sign Up Link
=========================== */

.signup-link {
    display: block;
    width: 100%;
    margin-top: 24px;
    text-align: center;
    color: #7C3AED;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

    .signup-link:hover {
        text-decoration: none;
    }

/* ===========================
   Animation
=========================== */

@keyframes popup {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
