/* ============================================
   Takvimim - Auth (Giriş/Kayıt) Tasarımı
   style.css tasarım sistemini temel alır ve geliştirir.
   ============================================ */

.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    padding: 40px;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--navy-900);
    letter-spacing: -1px;
    margin-bottom: 6px;
}

.auth-brand i { color: var(--purple-600); font-size: 1.8rem; }
.auth-brand span {
    background: linear-gradient(135deg, var(--indigo-600) 0%, var(--purple-600) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-title {
    text-align: center;
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.auth-sub {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.92rem;
    margin-bottom: 26px;
}

.auth-block { width: 100%; justify-content: center; }

.auth-footer {
    text-align: center;
    margin-top: 22px;
    border-top: 1px solid var(--gray-100);
    padding-top: 18px;
    font-size: 0.9rem;
    color: var(--gray-500);
}
.auth-footer a { color: var(--purple-600); font-weight: 600; }
.auth-footer a:hover { color: var(--purple-700); }

.auth-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.auth-link-row a { font-size: 0.82rem; font-weight: 600; color: var(--purple-600); }

/* ---- Giriş yöntemi sekmeleri (şifre / OTP) ---- */
.auth-tabs {
    display: flex;
    gap: 6px;
    background: var(--gray-100);
    padding: 5px;
    border-radius: var(--radius-md);
    margin-bottom: 22px;
}
.auth-tabs button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    background: transparent;
    color: var(--gray-500);
    font-family: inherit;
    transition: var(--transition);
}
.auth-tabs button.active {
    background: var(--white);
    color: var(--purple-700);
    box-shadow: var(--shadow-sm);
}

/* ---- OTP kutusu ---- */
.otp-input {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 10px;
    font-family: 'Outfit', sans-serif;
}

/* ---- Rol seçimi ---- */
.role-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
}
.role-greeting {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--purple-600);
    margin-bottom: 22px;
}
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    width: 100%;
    max-width: 720px;
}
.role-form { margin: 0; }
.role-btn {
    width: 100%;
    cursor: pointer;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 38px 28px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    font-family: inherit;
}
.role-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--purple-500);
}
.role-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(135deg, var(--indigo-600) 0%, var(--purple-600) 100%);
    margin-bottom: 18px;
}
.role-title { font-size: 1.25rem; font-weight: 800; color: var(--navy-900); margin-bottom: 8px; font-family: 'Outfit', sans-serif; }
.role-desc { font-size: 0.9rem; color: var(--gray-500); line-height: 1.5; }
.role-logout { margin-top: 26px; font-size: 0.9rem; }
.role-logout a { color: var(--gray-500); font-weight: 600; }

/* ---- Bağlam seçici (select_context) ---- */
.ctx-intro { text-align: center; color: var(--gray-500); font-size: 0.95rem; margin: -8px 0 22px; max-width: 520px; }
.ctx-group-title {
    font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--gray-500); margin: 28px 0 12px; width: 100%; max-width: 720px;
}
.ctx-group-title:first-of-type { margin-top: 0; }
.ctx-grid { margin-bottom: 4px; }
.ctx-btn { padding: 28px 22px; }
.ctx-sub { margin-top: 6px; font-size: 0.82rem !important; }
.ctx-icon-business { background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%) !important; }
.ctx-icon-customer { background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important; }
.ctx-super .role-icon { background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important; }

.ctx-support-link { margin-top: 28px; max-width: 520px; width: 100%; }
.ctx-support-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: 16px;
    background: linear-gradient(135deg, #faf5ff 0%, #eef2ff 100%);
    text-decoration: none;
    color: var(--navy-900);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ctx-support-btn:hover {
    border-color: #6366f1;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.12);
}
.ctx-support-btn > .fa-life-ring {
    font-size: 1.4rem;
    color: #6366f1;
    flex-shrink: 0;
}
.ctx-support-btn span { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.ctx-support-btn strong { font-size: 0.95rem; }
.ctx-support-btn small { font-size: 0.82rem; color: var(--gray-500); font-weight: 400; }
.ctx-support-arrow { color: var(--gray-400); font-size: 0.85rem; }

/* ---- İşletme seçimi ---- */
.biz-wrap { max-width: 680px; margin: 0 auto; padding: 56px 24px; }
.biz-head { text-align: center; margin-bottom: 28px; }
.biz-head h1 { font-size: 1.7rem; margin-bottom: 6px; }
.biz-head p { color: var(--gray-500); font-size: 0.95rem; }
.biz-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.biz-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--purple-100); }
.biz-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--indigo-600) 0%, var(--purple-600) 100%);
    font-family: 'Outfit', sans-serif;
}
.biz-info { flex: 1; min-width: 0; }
.biz-info h3 { font-size: 1.05rem; margin: 0 0 4px 0; }
.biz-info .sector { font-size: 0.82rem; color: var(--gray-500); }
.biz-empty { text-align: center; padding: 48px 24px; color: var(--gray-500); }
.biz-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; }
.biz-footer a { color: var(--purple-600); font-weight: 600; }

/* Hukuksal onay kutulari */
.legal-consent-block {
    margin: 18px 0 8px;
    padding: 14px 16px;
    background: var(--gray-50, #f8fafc);
    border: 1px solid var(--gray-100, #f1f5f9);
    border-radius: var(--radius-md, 12px);
    font-size: 0.88rem;
}
.legal-consent-title {
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
    margin: 0 0 10px;
}
.legal-consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
    cursor: pointer;
    line-height: 1.45;
}
.legal-consent-check input { margin-top: 3px; flex-shrink: 0; }
.legal-consent-check a { font-weight: 600; }
.legal-consent-sub { margin-left: 8px; color: var(--gray-600); }
.legal-consent-hint {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0 0 10px;
}
.auth-legal-links .legal-footer-links { font-size: 0.78rem; }
.auth-legal-links .legal-footer-links a { color: var(--gray-500); font-weight: 500; }
.legal-footer-links a { color: inherit; text-decoration: none; opacity: 0.75; }
.legal-footer-links a:hover { opacity: 1; text-decoration: underline; }
.legal-footer-sep { opacity: 0.45; margin: 0 4px; }
.sa-quill-host { min-height: 180px; background: #fff; border-radius: 8px; }
.sa-legal-editor-block .ql-container { min-height: 140px; }
