:root {
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-rgb: 245, 158, 11;
}

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

body {
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #0b1120, #1e3a8a, #05070d);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    color: #0f172a;
}

/* ---------- Two-column login card ---------- */

.login-container {
    width: 100%;
    max-width: 1050px;
    min-height: 620px;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.login-left {
    background: radial-gradient(circle at top left, rgba(var(--accent-rgb), .5), transparent 28%),
                linear-gradient(145deg, #020617, #1e3a8a);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 15px 35px rgba(var(--accent-rgb), .45);
}

.brand h1 {
    font-size: 25px;
    font-weight: 800;
}

.brand p {
    color: #bfdbfe;
    font-size: 14px;
    margin-top: 4px;
}

.hero h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero p {
    color: #dbeafe;
    font-size: 17px;
    line-height: 1.7;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature {
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(10px);
}

.feature i {
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 12px;
}

.feature strong {
    display: block;
    font-size: 15px;
    margin-bottom: 5px;
}

.feature span {
    color: #bfdbfe;
    font-size: 13px;
}

.login-right {
    padding: 55px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-brand {
    display: none;
    margin-bottom: 30px;
}

/* ---------- Single-column card (forgot/reset/confirm password) ---------- */

.auth-card-wrap {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 28px;
    padding: 46px 44px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.auth-card-wrap .brand {
    margin-bottom: 30px;
}

/* ---------- Shared form styles ---------- */

.form-head h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #0f172a;
}

.form-head p {
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
}

.alert {
    background: #fee2e2;
    color: #991b1b;
    padding: 13px 15px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #334155;
}

.input-box {
    position: relative;
}

.input-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.input-box input {
    width: 100%;
    height: 52px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 16px;
    padding: 0 48px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: .25s;
}

.input-box input:focus {
    background: white;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .15);
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
}

/* The eye icon must not inherit the absolute positioning of the field's left icon. */
.toggle-password i {
    position: static;
    transform: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
}

.forgot {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 700;
}

.forgot:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    font-weight: 800;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(var(--accent-rgb), .32);
    transition: .25s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(var(--accent-rgb), .45);
}

.auth-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

.footer {
    margin-top: 32px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    margin-top: 20px;
}

.back-link:hover {
    color: var(--accent-dark);
}

@media (max-width: 850px) {
    body { padding: 15px; }

    .login-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-left { display: none; }
    .login-right { padding: 35px 24px; }
    .mobile-brand { display: flex; }

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

    .auth-card-wrap {
        padding: 34px 26px;
    }
}
