/* ================================================================
   AUTH MODAL CSS — Kariyer Belge Üyelik Sistemi
   Dosya: css/auth_modal.css
   ================================================================ */

/* ── Overlay ────────────────────────────────────────────────────── */
.auth-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.auth-overlay.active {
    display: flex;
}

/* ── Modal Kutusu ───────────────────────────────────────────────── */
.auth-modal-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    padding: 36px 36px 28px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    animation: authSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

@keyframes authSlideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Kapat Butonu ───────────────────────────────────────────────── */
.auth-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f5f5f5;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.auth-close-btn:hover {
    background: #D32F2F;
    color: #fff;
}

/* ── Logo ───────────────────────────────────────────────────────── */
.auth-logo-wrap {
    text-align: center;
    margin-bottom: 20px;
}
.auth-logo-wrap img {
    height: 42px;
    object-fit: contain;
}

/* ── Sekmeler ───────────────────────────────────────────────────── */
.auth-tabs {
    display: flex;
    gap: 6px;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 24px;
}
.auth-tab-btn {
    flex: 1;
    padding: 9px 6px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-weight: 700;
    font-size: 0.78rem;
    color: #888;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}
.auth-tab-btn.active {
    background: #D32F2F;
    color: #fff;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35);
}
.auth-tab-btn:not(.active):hover {
    background: #ffe5e5;
    color: #D32F2F;
}

/* ── Paneller ───────────────────────────────────────────────────── */
.auth-panel {
    display: none;
    animation: authFadeIn 0.25s ease;
}
.auth-panel.active {
    display: block;
}
@keyframes authFadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Google Butonu ──────────────────────────────────────────────── */
.auth-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    margin-bottom: 18px;
}
.auth-google-btn img { width: 22px; }
.auth-google-btn:hover {
    border-color: #D32F2F;
    box-shadow: 0 4px 14px rgba(211,47,47,0.15);
    background: #fff8f8;
}

/* ── Ayraç ──────────────────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: #ccc;
    font-size: 0.75rem;
    font-weight: 700;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

/* ── Form Alanları ──────────────────────────────────────────────── */
.auth-field-wrap {
    margin-bottom: 14px;
}
.auth-field-wrap label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 5px;
}
.auth-field-wrap label small {
    font-weight: 400;
    color: #999;
    font-size: 0.72rem;
}
.auth-field-wrap label .req {
    color: #D32F2F;
}

.auth-input-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-icon > i:first-child {
    position: absolute;
    left: 13px;
    color: #bbb;
    font-size: 0.85rem;
    pointer-events: none;
}
.auth-input-icon input,
.auth-input-icon select {
    width: 100%;
    padding: 11px 40px 11px 36px;
    border: 1.5px solid #e0e0e0;
    border-radius: 9px;
    font-size: 0.88rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    font-family: inherit;
}
.auth-input-icon select {
    cursor: pointer;
    -webkit-appearance: none;
}
.auth-input-icon input:focus,
.auth-input-icon select:focus {
    border-color: #D32F2F;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
    background: #fff;
}
.auth-input-icon input.input-error {
    border-color: #e53935;
    background: #fff8f8;
}

/* Göz butonu (şifre göster/gizle) */
.auth-eye-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    transition: color 0.2s;
}
.auth-eye-btn:hover { color: #D32F2F; }

/* ── İki Sütun ──────────────────────────────────────────────────── */
.auth-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Hata / Başarı Mesajları ────────────────────────────────────── */
.auth-field-err {
    display: block;
    font-size: 0.72rem;
    color: #e53935;
    margin-top: 4px;
    min-height: 14px;
    font-weight: 600;
}
.auth-genel-hata {
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    color: #c62828;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 14px;
    margin-bottom: 12px;
    display: none;
}
.auth-genel-hata.show { display: block; }

.auth-basari-msg {
    background: #f1fff4;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    color: #2e7d32;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 14px;
    margin-bottom: 12px;
    display: none;
}
.auth-basari-msg.show { display: block; }

/* ── Submit Butonu ──────────────────────────────────────────────── */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #D32F2F 0%, #b71c1c 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.45);
}
.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Alt Linkler ────────────────────────────────────────────────── */
.auth-alt-links {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.auth-link-btn {
    background: none;
    border: none;
    color: #D32F2F;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 2px 4px;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.auth-link-btn:hover { color: #b71c1c; }
.auth-link-sep { color: #ccc; }

/* ── Şifre Bilgi Kutusu ─────────────────────────────────────────── */
.auth-sifre-info {
    background: #f0f7ff;
    border: 1px solid #bbdefb;
    border-radius: 9px;
    color: #1565c0;
    font-size: 0.8rem;
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 600;
}

/* ── Gizli Soru Gösterim Alanı ──────────────────────────────────── */
.auth-gizli-soru-text {
    background: #fafafa;
    border: 1.5px solid #e0e0e0;
    border-radius: 9px;
    padding: 11px 14px;
    font-size: 0.85rem;
    color: #444;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-gizli-soru-text i { color: #D32F2F; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 540px) {
    .auth-modal-box {
        padding: 24px 18px 20px;
        border-radius: 16px;
    }
    .auth-two-col {
        grid-template-columns: 1fr;
    }
    .auth-tab-btn {
        font-size: 0.7rem;
        padding: 9px 4px;
    }
    .auth-tab-btn i { display: none; }
}
