/* ============================================
   TAARUF ASMARA — Auth (Login)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --auth-primary: #0B5D4B;
    --auth-primary-dark: #064E3B;
    --auth-text: #1E293B;
    --auth-muted: #64748B;
    --auth-border: #E2E8F0;
    --auth-cream: #F5F0E8;
}

.auth-login-body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-height: 100vh;
    background: #F8FAFC;
    color: var(--auth-text);
    -webkit-font-smoothing: antialiased;
}

.auth-login-page {
    display: flex;
    min-height: 100vh;
}

/* ======= ILLUSTRATION PANEL ======= */
.auth-login-visual {
    flex: 1;
    display: none;
    position: relative;
    background: var(--auth-cream);
    overflow: hidden;
}

.auth-login-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-login-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 93, 75, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* ======= FORM PANEL ======= */
.auth-login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
}

.auth-login-card {
    width: 100%;
    max-width: 400px;
}

.auth-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    text-decoration: none;
}

.auth-login-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-primary);
    font-size: 1.6rem;
}

.auth-login-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-primary);
    margin: 0;
}

.auth-login-heading {
    font-family: 'Inter', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0 0 0.5rem;
    text-align: center;
}

.auth-login-subheading {
    font-size: 0.9375rem;
    color: var(--auth-muted);
    text-align: center;
    margin: 0 0 2rem;
    line-height: 1.6;
}

.auth-login-alert {
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.auth-login-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--auth-muted);
    margin-bottom: 0.5rem;
}

.auth-login-input {
    width: 100%;
    border: 1.5px solid var(--auth-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.9375rem;
    color: var(--auth-text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-login-input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(11, 93, 75, 0.1);
}

.auth-login-input::placeholder {
    color: #94A3B8;
}

.auth-login-field {
    margin-bottom: 1.25rem;
}

.auth-login-password-wrap {
    position: relative;
}

.auth-login-password-wrap .auth-login-input {
    padding-right: 2.75rem;
}

.auth-login-toggle-pw {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.1rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.auth-login-toggle-pw:hover {
    color: var(--auth-primary);
}

.auth-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--auth-muted);
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.auth-login-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-primary);
    cursor: pointer;
}

.auth-login-forgot {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--auth-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-login-forgot:hover {
    color: var(--auth-primary-dark);
}

.auth-login-submit {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    box-shadow: 0 4px 14px rgba(11, 93, 75, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(11, 93, 75, 0.35);
}

.auth-login-submit:active {
    transform: translateY(0);
}

.auth-login-footer {
    margin-top: 1.75rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--auth-muted);
}

.auth-login-footer a {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-login-footer a:hover {
    text-decoration: underline;
}

@media (min-width: 992px) {
    .auth-login-visual {
        display: block;
    }

    .auth-login-panel {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 991.98px) {
    .auth-login-panel {
        min-height: 100vh;
    }
}
