/* ==========================================================================
   Yön Pazarlama · Portal — oturum dışı sayfalar (giriş, şifre, çıkış)
   Portal modülleriyle aynı palet: lacivert #0f3d5c, altın #c9971a, IBM Plex Sans.
   ========================================================================== */
:root {
    --yp-navy:      #0f3d5c;
    --yp-navy-800:  #0c3350;
    --yp-navy-900:  #0a2a42;
    --yp-navy-50:   #eaf1f6;
    --yp-gold:      #c9971a;
    --yp-gold-50:   #fbf4e3;
    --yp-text:      #1d2733;
    --yp-muted:     #66758a;
    --yp-line:      #e1e6ed;
    --yp-line-strong:#cfd7e1;
    --yp-bg:        #f3f5f8;
    --yp-danger:    #b42318;
    --yp-danger-50: #fdecea;
    --yp-success:   #1e7f4f;
    --yp-success-50:#e7f5ee;
    --yp-radius:    10px;
    --yp-font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body.yp-auth {
    margin: 0;
    font-family: var(--yp-font);
    font-size: .95rem;
    color: var(--yp-text);
    background: var(--yp-bg);
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
    min-height: 100vh;
}

/* ---------- Kart ---------- */
.auth-card {
    width: 100%; max-width: 420px;
    background: #fff;
    border: 1px solid var(--yp-line);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(10, 42, 66, .10);
    overflow: hidden;
}
.auth-card.auth-wide { max-width: 880px; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 767px) { .auth-card.auth-wide { grid-template-columns: 1fr; max-width: 420px; } }

/* Lacivert marka paneli (giriş sayfası sol taraf / diğer sayfalarda üst band) */
.auth-brand {
    position: relative;
    background-color: var(--yp-navy-900);
    background-image: linear-gradient(180deg, rgba(10,42,66,.80) 0%, rgba(10,42,66,.94) 100%), var(--auth-foto, none);
    background-size: cover; background-position: center;
    color: #fff;
    padding: 32px 32px 28px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.auth-brand .logo-tile {
    display: inline-block; background: #fff; border-radius: var(--yp-radius);
    padding: 8px 12px; max-width: 170px;
}
.auth-brand .logo-tile img { display: block; width: 100%; height: auto; }
.auth-brand .brand-text { border-left: 3px solid var(--yp-gold); padding-left: 14px; }
.auth-brand .brand-text strong { display: block; font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.auth-brand .brand-text span   { display: block; font-size: .88rem; color: #b8c6d4; margin-top: 4px; }
.auth-brand .brand-foot { font-size: .78rem; color: #8ea1b4; }
@media (max-width: 767px) {
    .auth-brand { padding: 24px; gap: 18px; }
    .auth-brand .brand-foot { display: none; }
}

/* Kompakt üst band (şifre / çıkış sayfaları) */
.auth-head {
    background: var(--yp-navy-900);
    padding: 22px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.auth-head .logo-tile { text-decoration: none; display: block; background: #fff; border-radius: 8px; padding: 6px 10px; width: 140px; }
.auth-head .logo-tile img { display: block; width: 100%; height: auto; }
.auth-head .head-label { color: #b8c6d4; font-size: .8rem; text-align: right; border-right: 3px solid var(--yp-gold); padding-right: 10px; }

.auth-body { padding: 30px 32px 28px; }
@media (max-width: 480px) { .auth-body { padding: 24px 22px; } }

.auth-title { font-size: 1.3rem; font-weight: 600; margin: 0 0 6px; color: var(--yp-text); }
.auth-sub   { color: var(--yp-muted); margin: 0 0 24px; line-height: 1.5; }

/* ---------- Form ---------- */
.auth-field { margin-bottom: 16px; }
.auth-label { display: block; font-weight: 500; font-size: .88rem; margin-bottom: 6px; color: var(--yp-text); }
.auth-input {
    display: block; width: 100%;
    font-family: inherit; font-size: .95rem; color: var(--yp-text);
    background: #fff;
    border: 1px solid var(--yp-line-strong); border-radius: 8px;
    padding: 11px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-input:focus { outline: none; border-color: var(--yp-navy); box-shadow: 0 0 0 3px rgba(15,61,92,.14); }
.auth-input-wrap { position: relative; }
.auth-input-wrap .auth-input { padding-right: 44px; }
.auth-eye {
    position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
    color: var(--yp-muted); cursor: pointer; font-size: 1.05rem; line-height: 1;
    background: none; border: 0; padding: 4px;
}
.auth-eye:hover { color: var(--yp-navy); }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; font-size: .88rem; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; color: var(--yp-text); }
.auth-check input { width: 16px; height: 16px; accent-color: var(--yp-navy); margin: 0; }

.auth-btn {
    display: block; width: 100%;
    font-family: inherit; font-size: .95rem; font-weight: 600;
    color: #fff; background: var(--yp-navy);
    border: 1px solid var(--yp-navy); border-radius: 8px;
    padding: 12px 16px; cursor: pointer;
    transition: background .15s ease;
    -webkit-appearance: none; appearance: none;
}
.auth-btn:hover { background: var(--yp-navy-800); }
.auth-btn:focus-visible { outline: 3px solid rgba(201,151,26,.45); outline-offset: 2px; }

.auth-link { color: var(--yp-navy); font-weight: 500; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

.auth-hint {
    font-size: .82rem; color: var(--yp-muted);
    background: var(--yp-bg); border-radius: 8px; padding: 10px 12px; margin: -4px 0 18px;
    line-height: 1.6;
}
.auth-recaptcha { display: flex; justify-content: center; margin: 6px 0 18px; }

.auth-msg { border-radius: 8px; padding: 12px 14px; margin-bottom: 18px; font-size: .9rem; line-height: 1.5; border: 1px solid transparent; }
.auth-msg.success { background: var(--yp-success-50); color: var(--yp-success); border-color: #bfe3cf; }
.auth-msg.error   { background: var(--yp-danger-50);  color: var(--yp-danger);  border-color: #f5c2bd; }
.auth-msg.info    { background: var(--yp-navy-50);    color: var(--yp-navy);    border-color: #cddcea; }

.auth-back { margin-top: 20px; text-align: center; font-size: .88rem; }
.auth-foot { margin-top: 22px; text-align: center; font-size: .78rem; color: var(--yp-muted); }

/* ---------- Durum sayfaları (çıkış, hatalı giriş) ---------- */
.auth-status { text-align: center; }
.auth-status .status-icon {
    width: 64px; height: 64px; border-radius: 50%;
    margin: 4px auto 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
}
.status-icon.ok   { background: var(--yp-success-50); color: var(--yp-success); }
.status-icon.warn { background: var(--yp-danger-50);  color: var(--yp-danger); }
.auth-status .auth-sub { margin-bottom: 18px; }

.auth-progress { height: 4px; background: var(--yp-line); border-radius: 2px; overflow: hidden; margin: 6px 0 14px; }
.auth-progress > span { display: block; height: 100%; width: 0; background: var(--yp-gold); animation: authFill var(--sure, 3s) linear forwards; }
@keyframes authFill { to { width: 100%; } }
.auth-redirect { font-size: .85rem; color: var(--yp-muted); }
