@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

body.auth-page {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #f8f3f0 0%, #ebe0d8 50%, #ddd0c6 100%);
    min-height: 100vh;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-brand img {
    max-height: 80px;
    max-width: min(100%, 220px);
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.auth-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

.auth-brand p {
    margin: 0.5rem 0 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.auth-links {
    margin-top: 1rem;
    text-align: center;
}

.auth-links a {
    color: #ba8c76;
    font-size: 0.95rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

html[dir="rtl"] .form-control {
    text-align: right;
}

html[dir="ltr"] .form-control {
    text-align: left;
}

.form-control {
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
}

.btn-auth {
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-weight: 600;
}

.alert {
    border-radius: 8px;
}

.auth-lang-toggle {
    position: fixed;
    top: 1rem;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #544e52;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-size: 0.85rem;
    font-weight: 600;
}

html[dir="rtl"] .auth-lang-toggle {
    left: 1rem;
}

html[dir="ltr"] .auth-lang-toggle {
    right: 1rem;
}

.auth-lang-toggle:hover {
    color: #ba8c76;
    text-decoration: none;
}
