/* Superadmin login — matches ChaiwalaPro agency login design.
   Warm tea-inspired palette; --purple* names kept for compatibility. */
:root {
    --purple: #D97706;
    --purple-hover: #B45309;
    --bg: #FFF8EF;
    --card: #ffffff;
    --text: #2A1F17;
    --muted: #8A7A68;
    --border: #E8DCC8;
    --input-bg: #FAF1E4;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body.auth-page {
    font-family: var(--font);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

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

.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 14px;
}

.auth-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.auth-brand h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.auth-brand p {
    color: var(--muted);
    font-size: 0.95rem;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 28px 24px;
    box-shadow: 0 1px 2px rgba(28, 20, 16, 0.05);
}

.auth-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.auth-card-sub {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 22px;
    line-height: 1.5;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a7a68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.auth-result {
    text-align: center;
    padding: 8px 0 4px;
}

.auth-result-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d1fae5;
    color: #047857;
}

.auth-result-icon-info {
    background: #fef3c7;
    color: #b45309;
}

.auth-result h2 {
    margin-bottom: 8px;
}

.auth-result p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 22px;
}

.btn-auth-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    background: #25D366;
}

.btn-auth-whatsapp:hover {
    background: #1EBE5A;
}

.auth-back-link {
    display: block;
    margin-top: 14px;
}

.auth-alert {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #44403C;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--input-bg);
    border: 1.5px solid transparent;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

.form-control::placeholder {
    color: #ADA294;
}

.form-control:focus,
.form-control-focus {
    background: #fff;
    border-color: var(--purple);
}

.form-control.is-invalid {
    border-color: var(--danger);
    background: var(--danger-bg);
}

.form-control.is-invalid:focus {
    border-color: var(--danger);
}

.field-error {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--danger);
}

.password-wrap {
    position: relative;
}

.password-wrap .form-control {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #8A7A68;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
}

.password-toggle:hover {
    color: var(--purple);
    background: rgba(217, 119, 6, 0.1);
}

.password-toggle .icon-hide {
    display: none;
}

.password-toggle.is-visible .icon-show {
    display: none;
}

.password-toggle.is-visible .icon-hide {
    display: block;
}

.btn-auth {
    width: 100%;
    height: 46px;
    margin-top: 8px;
    background: var(--purple);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-auth:hover {
    background: var(--purple-hover);
}

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

.auth-footer-text a {
    color: var(--purple);
    font-weight: 600;
}

.auth-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0 4px;
}

.auth-page {
    position: relative;
}

.auth-lang {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 180px;
    z-index: 20;
}

.auth-lang .lang-switcher {
    width: 100%;
}

.auth-lang .lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FEF3E2;
    color: var(--purple);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.auth-lang .lang-pill .lang-chevron {
    margin-left: auto;
}

.auth-lang .lang-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    bottom: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(28, 20, 16, 0.18);
    max-height: 320px;
    overflow-y: auto;
    padding: 8px 0;
    z-index: 80;
}

.auth-lang .lang-region {
    padding: 8px 14px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ADA294;
}

.auth-lang .lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: #2A1F17;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.auth-lang .lang-option:hover {
    background: #FDECD3;
}

.auth-lang .lang-option.active {
    background: #FEF3E2;
    color: var(--purple);
    font-weight: 600;
}

.auth-lang .lang-check {
    color: var(--purple);
    font-weight: 700;
    width: 16px;
    text-align: center;
}

.auth-lang .lang-check-spacer {
    width: 16px;
    display: inline-block;
}

/* Site footer (matches home page) */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer {
    background: #120D0A;
    padding: 28px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer p {
    font-size: 14px;
    color: #ADA294;
}

.footer strong {
    color: #E7DFD3;
}

.footer a {
    color: #ADA294;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--purple);
}

.footer .sep {
    margin: 0 8px;
    color: #5C5347;
}

@media (max-width: 900px) {
    .footer .sep {
        display: none;
    }

    .footer a {
        display: inline-block;
        margin: 4px 8px;
    }
}

/* WhatsApp floating order button */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 16px rgba(28, 20, 16, 0.25);
    z-index: 999;
    transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
    background: #1EBE5A;
    transform: scale(1.08);
    color: #fff;
}

.whatsapp-tooltip {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    margin-right: 12px;
    background: var(--text);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--text);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}
