* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
}

.login-page {
    background: #0f172a;
}

.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ================= HERO ================= */

.login-hero {
    position: relative;
    flex: 1.2;
    background: url('../images/login-bg.jpg') center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(15, 23, 42, 0.85),
        rgba(15, 23, 42, 0.05)
    );
}

.hero-content {
    position: relative;
    max-width: 520px;
    padding: 40px;
    color: #fff;
}

.hero-logo {
    width: 190px;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

/* ================= LOGIN PANEL ================= */

.login-panel {
    flex: 1;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 48px 44px;
    border-radius: 18px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    box-shadow:
        0 30px 60px rgba(15,23,42,0.15),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

.login-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.subtitle {
    font-size: 15px;
    color: #475569;
    margin-bottom: 28px;
}

/* ================= FORM ================= */

.login-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 14px 14px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #cbd5f5;
    background: #fff;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.form-meta {
    text-align: right;
    margin-bottom: 22px;
}

.forgot-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-terms-notice {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 18px;
    line-height: 1.5;
}
.login-terms-notice a {
    color: #2563eb;
    text-decoration: none;
}
.login-terms-notice a:hover {
    text-decoration: underline;
}

/* Success message (e.g. after password reset) */
.success-message {
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 14px;
}

/* ================= FORGOT PASSWORD MODAL ================= */
.forgot-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s ease, opacity 0.2s ease;
}
.forgot-modal.forgot-modal-open {
    visibility: visible;
    opacity: 1;
}
.forgot-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}
.forgot-modal-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 32px 28px;
    padding-top: 44px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
}
.forgot-modal-close-x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 26px;
    line-height: 1;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
}
.forgot-modal-close-x:hover {
    color: #0f172a;
    background: #f1f5f9;
}
.forgot-modal-box h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.forgot-modal-desc {
    font-size: 14px;
    color: #475569;
    margin-bottom: 22px;
    line-height: 1.5;
}
.forgot-form .form-group {
    margin-bottom: 18px;
}
.forgot-form .form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}
.forgot-form .form-group input {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #cbd5f5;
    background: #fff;
    outline: none;
}
.forgot-form .form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.forgot-form-message {
    font-size: 14px;
    margin-bottom: 14px;
    min-height: 1.4em;
}
.forgot-form-message-success {
    color: #065f46;
}
.forgot-form-message-error {
    color: #b91c1c;
}
.forgot-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}
.forgot-btn-cancel {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}
.forgot-btn-cancel:hover {
    background: #e2e8f0;
}
.forgot-btn-submit {
    padding: 12px 20px;
}

/* ================= BUTTON ================= */

.login-button {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(37,99,235,0.35);
}

/* ================= FOOTER ================= */

.login-footer {
    margin-top: 26px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 980px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-hero {
        display: none;
    }

    .login-panel {
        flex: 1;
    }
}
