:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #0c1322;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --border-color: #334155;
    --error: #ef4444;
    --success: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-main);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    padding: 40px 36px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.login-box h3 {
    text-align: center;
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.login-box .subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 0.82rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.form-control {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px 12px 40px;
    font-size: 0.88rem;
    color: var(--text-main);
    transition: all 0.25s ease;
    font-family: inherit;
}

.form-control-simple {
    padding-left: 14px;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    outline: none;
    background-color: #111827;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.18);
    font-style: italic;
    font-size: 0.84rem;
}

.form-control:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    border: none;
    padding: 13px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    font-family: inherit;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -4px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 13px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    font-family: inherit;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.btn-success {
    width: 100%;
    background: linear-gradient(135deg, var(--success), #059669);
    color: #fff;
    border: none;
    padding: 13px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    font-family: inherit;
}

.btn-success:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-links .register-link {
    color: var(--accent);
}

.footer-links .register-link:hover {
    color: #a78bfa;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 6px;
}

.back-link a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link a:hover {
    color: var(--text-main);
}

/* Password Toggle */
.pass-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.pass-toggle:hover {
    color: var(--text-main);
}

/* ===== Confirmation Info Card ===== */
.confirm-info-card {
    background: var(--bg-input);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
}

.confirm-info-card .card-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row .info-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.info-row .info-value {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 600;
}

.confirm-notice {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 0.78rem;
    color: #fbbf24;
    text-align: center;
    font-weight: 500;
    line-height: 1.5;
}

/* ===== Pending Approval Result ===== */
.result-section {
    text-align: center;
    padding: 20px 0;
}

.result-icon {
    font-size: 56px;
    margin-bottom: 16px;
    line-height: 1;
}

.result-section h3 {
    color: #fcd34d;
    margin-bottom: 8px;
}

.result-section .subtitle {
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-inline {
    display: inline-block;
    width: auto;
    padding: 12px 36px;
    text-decoration: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.btn-inline:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -4px rgba(139, 92, 246, 0.4);
}

/* Session Modal */
.session-modal-bg {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.session-modal-bg.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-modal {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    padding: 40px;
    border-radius: 20px;
    width: 420px;
    max-width: 90vw;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--error);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.session-modal .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.session-modal h4 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.session-modal p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.session-modal a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    padding: 12px 36px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.session-modal a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        margin: 16px;
        padding: 28px 24px;
    }
}

/* Password Requirements Tracker */
.live-reqs-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: left;
}
.live-reqs-list li {
    margin-bottom: 2px;
}