*, *::before, *::after { box-sizing: border-box; }

body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: #f5f8ff;
    display: flex;
    align-items: stretch;
}

.login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── Left brand panel ── */
.login-brand {
    flex: 1;
    background: linear-gradient(145deg, #1a3c6e 0%, #1e5799 55%, #2980b9 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.login-brand::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 420px;
}

.brand-logo {
    width: 72px;
    height: 72px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.brand-logo img {
    height: 44px;
}

.brand-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    margin: 0 0 40px;
}

.brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.brand-features li .feat-icon {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.12);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255,255,255,0.9);
}

/* ── Right form panel ── */
.login-form-panel {
    width: 480px;
    flex-shrink: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 56px;
    box-shadow: -4px 0 40px rgba(0,0,0,0.06);
}

.form-header {
    margin-bottom: 36px;
}

.form-header .greeting {
    font-size: 13px;
    font-weight: 600;
    color: #1e5799;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
    letter-spacing: -0.4px;
}

.form-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Alerts */
.alert-list { margin-bottom: 24px; }

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    font-size: 13.5px;
    color: #b91c1c;
    margin-bottom: 8px;
}

.alert-item:last-child { margin-bottom: 0; }
.alert-item svg { flex-shrink: 0; margin-top: 1px; }

/* Form fields */
.field-group { margin-bottom: 20px; }

.field-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.field-wrap { position: relative; }

.field-wrap input {
    width: 100%;
    height: 48px;
    padding: 0 46px 0 42px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #111827;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.field-wrap input:focus {
    border-color: #1e5799;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30,87,153,0.1);
}

.field-wrap input::placeholder { color: #c4c4c4; }

/* Leading icon */
.field-lead {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    display: flex;
    pointer-events: none;
}

/* Trailing toggle */
.pw-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.pw-toggle:hover { color: #1e5799; }

.field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.field-row label { margin-bottom: 0; }

.forgot-link {
    font-size: 13px;
    font-weight: 500;
    color: #1e5799;
    text-decoration: none;
    transition: opacity 0.15s;
}

.forgot-link:hover { opacity: 0.75; text-decoration: underline; }

/* Submit button */
.btn-signin {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #1a3c6e 0%, #1e5799 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(30,87,153,0.35);
    letter-spacing: 0.2px;
}

.btn-signin:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30,87,153,0.42);
}

.btn-signin:active { transform: translateY(0); }

/* Footer */
.form-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    font-size: 12.5px;
    color: #9ca3af;
}

.form-footer span { font-weight: 600; color: #6b7280; }

@media (max-width: 900px) {
    .login-brand { display: none; }
    .login-form-panel {
        width: 100%;
        padding: 48px 32px;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .login-form-panel { padding: 40px 24px; }
    .form-header h1 { font-size: 24px; }
}
