/* ===== LOGIN + STORE PICKER (visual only) ===== */
/* Classic, neutral palette. */

.auth-page {
    height: 100vh;
    overflow-y: auto;
    display: flex;
    background: #fafafa;
    color: #18181b;
}
.auth-page--center {
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

/* Left/brand panel (RTL: appears on the right) */
.auth-hero {
    width: 42%;
    max-width: 560px;
    flex-shrink: 0;
    background:
        radial-gradient(600px 400px at 85% 10%, rgba(255,255,255,0.06), transparent 60%),
        #18181b;
    color: #fafafa;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-hero__content { margin-top: 12vh; }
.auth-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}
.auth-hero__title { font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -0.8px; margin: 0 0 14px; }
.auth-hero__text { font-size: 15px; line-height: 1.6; color: #a1a1aa; margin: 0; max-width: 360px; }
.auth-hero__foot { font-size: 12px; color: #71717a; }

/* Form side */
.auth-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}
.auth-card { width: 100%; max-width: 380px; }
.auth-page--center .auth-card,
.auth-card--wide {
    max-width: 460px;
    background: #fff;
    border: 1px solid #ececef;
    border-radius: 16px;
    padding: 32px 28px 22px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 12px 32px -12px rgba(0,0,0,0.08);
}
.auth-card__head { margin-bottom: 28px; }
.auth-page--center .auth-card__head { text-align: center; }
.auth-card__title { font-size: 24px; font-weight: 700; color: #18181b; margin: 0; letter-spacing: -0.5px; }
.auth-card__sub { font-size: 14px; color: #71717a; margin: 6px 0 0; }
.auth-logo--sm {
    display: none;
    width: 40px;
    height: 40px;
    background: #18181b;
    border: none;
    margin-bottom: 18px;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-label { display: block; font-size: 13px; font-weight: 500; color: #3f3f46; margin-bottom: 6px; }
.auth-page input.auth-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: #18181b;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-page input.auth-input--password { padding-left: 46px; }
.auth-page input.auth-input:focus { border-color: #18181b; box-shadow: 0 0 0 3px rgba(24,24,27,0.08); outline: none; }
.auth-page .auth-eye {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none !important;
    border-radius: 8px;
    color: #a1a1aa;
    padding: 0;
}
.auth-page .auth-eye:hover { color: #18181b; background: #f4f4f5; transform: translateY(-50%); box-shadow: none; }
.auth-page .auth-eye svg { width: 20px; height: 20px; }

.auth-error {
    font-size: 13px;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 9px;
    padding: 9px 12px;
}

.auth-page .auth-btn {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-page .auth-btn--primary { background: #18181b; color: #fff; border: 1px solid #18181b !important; margin-top: 4px; }
.auth-page .auth-btn--primary:hover { background: #27272a; transform: none; box-shadow: 0 6px 16px -6px rgba(0,0,0,0.35); }
.auth-page .auth-btn--ghost { background: #fff; color: #3f3f46; border: 1px solid #e4e4e7 !important; height: 42px; }
.auth-page .auth-btn--ghost:hover { background: #f4f4f5; transform: none; box-shadow: none; }
.auth-page .auth-btn--link { background: transparent; color: #71717a; border: none !important; height: 38px; margin-top: 8px; font-weight: 500; font-size: 13px; }
.auth-page .auth-btn--link:hover { color: #18181b; transform: none; box-shadow: none; }
.auth-page .auth-btn--logout {
    gap: 8px;
    height: 44px;
    margin-top: 14px;
    background: #fff;
    color: #52525b;
    border: 1px solid #e4e4e7 !important;
    font-weight: 500;
    font-size: 14px;
}
.auth-page .auth-btn--logout:hover { background: #fef2f2; color: #b91c1c; border-color: #fecaca !important; transform: none; box-shadow: none; }

/* Store picker */
.auth-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: #f4f4f5;
    border: 1px solid #ececef;
    color: #3f3f46;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-pick-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.auth-page .store-pick {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ececef !important;
    text-align: right;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.auth-page .store-pick:hover {
    border-color: #d4d4d8 !important;
    background: #fafafa;
    transform: none;
    box-shadow: 0 4px 14px -8px rgba(0,0,0,0.18);
}
.store-pick__badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--pick-color);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.store-pick__body { flex: 1; min-width: 0; }
.store-pick__name { font-size: 15px; font-weight: 600; color: #18181b; }
.store-pick__meta { font-size: 12.5px; color: #71717a; margin-top: 2px; }
.store-pick__arrow { color: #a1a1aa; flex-shrink: 0; transition: transform 0.15s, color 0.15s; }
.auth-page .store-pick:hover .store-pick__arrow { color: #18181b; transform: translateX(-3px); }

/* Tablet / mobile */
@media (max-width: 900px) {
    .auth-hero { display: none; }
    .auth-logo--sm { display: flex; }
    .auth-panel { align-items: flex-start; padding-top: 12vh; }
}
@media (max-width: 768px) {
    .auth-page .auth-btn { padding: 0 14px !important; font-size: 15px !important; }
    .auth-page .auth-eye { padding: 0 !important; }
    .auth-page .store-pick { padding: 14px !important; }
    .auth-page input.auth-input { font-size: 16px; } /* prevents iOS zoom on focus */
    .auth-page--center .auth-card { padding: 26px 18px 16px; }
}
