/* ===========================================================================
   auth.css — Kimlik ekranları (giriş, kayıt, şifre sıfırlama, kod doğrulama)
   ---------------------------------------------------------------------------
   TASARIM NOTU

   Ortalanmış beyaz kart kalıbından bilinçli olarak çıkıldı. Burası bir SaaS
   giriş ekranı değil, süreli bir yayının kapısı: solda derginin künyesi
   (masthead, ISSN, güncel sayı kapağı, dizinler), sağda form. Sol sütunu
   dolduran her şey o derginin KENDİ verisi, dolayısıyla her kurulumda farklı
   görünüyor.

   Renk paleti derginin primary_color ayarından türetiliyor; değişkenler
   panel/layout/auth_top.php içinde satır içi tanımlanıyor:
     --auth-accent  derginin rengi
     --auth-panel   künye sütununun zemini (koyultulmuş)
     --auth-panel-2 üst ton
     --auth-panel-in panel içi açık vurgu

   Başlıklar serif. Akademik yayıncılığın kendi geleneği bu ve ekranı ilk
   bakışta "yazılım" olmaktan çıkarıyor.

   MOBİL
   height:100vh kullanılmıyor — mobil adres çubuğu onu ekrandan taşırıyor ve
   kayıt formunun altı kesiliyordu. Girdi yazı boyutu 16px: daha küçüğünde
   iOS odaklanınca sayfayı kendiliğinden büyütüyor.
   =========================================================================== */

:root {
    --auth-ink:     #16202e;
    --auth-muted:   #667085;
    --auth-line:    #e4e7ec;
    --auth-paper:   #ffffff;
    --auth-stage:   #eef1f6;

    --auth-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
                  Georgia, "Times New Roman", serif;
    --auth-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;

    /* auth_top.php bunları derginin rengiyle eziyor; burada yedek değerler */
    --auth-accent:   #0d6efd;
    --auth-panel:    #101a2c;
    --auth-panel-2:  #1d2c47;
    --auth-panel-in: #6ea2ff;
}

/* --------------------------------------------------------------- sahne */

.auth-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--auth-stage);
    color: var(--auth-ink);
    font-family: var(--auth-sans);
    -webkit-font-smoothing: antialiased;
}

.auth-stage {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Tek bir nesne: iki yarısı olan bir levha. İki ayrı kart değil.
   overflow:hidden BİLEREK yok: yuvarlatma alt öğelere taşındı, çünkü
   kırpma sticky konumlandırmayı öldürüyor ve künye sütununun uzun formda
   yapışık kalması buna bağlı. */
.auth-shell {
    width: 100%;
    max-width: var(--auth-shell-width, 1000px);
    background: var(--auth-paper);
    display: grid;
    grid-template-columns: 1fr;   /* mobil: tek sütun */
}

/* =========================================================================
   KÜNYE SÜTUNU
   ========================================================================= */

.auth-aside {
    position: relative;
    background: var(--auth-panel);
    background-image:
        linear-gradient(160deg, var(--auth-panel-2) 0%, var(--auth-panel) 62%);
    color: #fff;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Kâğıt dokusu: çok ince yatay çizgiler, dizgi provası çağrışımı.
   Fark edilmesi gerekmiyor; yüzeyin düz olmamasını sağlıyor. */
.auth-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 5px);
    pointer-events: none;
}

.auth-aside > * { position: relative; }

/* Üst künye ve güncel sayı bloğu tek gövdede; alt ray (dizinler + imza) dipte
   kalırken bu gövde kalan alanda DİKEY ORTALANIYOR.
   Sabit üste yaslamak, yayımlanmış sayısı olmayan dergilerde sütunun
   ortasında koca bir boşluk bırakıyordu: içerik az olduğunda boşluk tek bir
   yerde toplanmak yerine üstle alta eşit dağılsın. */
.auth-aside__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
}

/* UZUN FORMLARDA (kayıt) ortalama ters çalışıyor: sütun formun boyuna uzuyor,
   masthead sayfanın ortasına düşüyor ve üstünde büyük bir boşluk kalıyor.
   O sayfalarda künye üste yaslanıyor — ve masaüstünde kaydırma boyunca
   yapışık kalıyor, böylece uzun formu doldururken derginin adı gözden
   kaybolmuyor. */
.auth-aside--top .auth-aside__body {
    flex: 0 0 auto;
    justify-content: flex-start;
}
.auth-aside--top { justify-content: flex-start; }

/* Derginin kendi tanımı — kapak yokken orta alanı dolduran metin.
   Alıntı gibi: sol kural çizgisi ve serif italik. */
.auth-about {
    margin: 0;
    padding-left: 15px;
    border-left: 2px solid rgba(255,255,255,.22);
    font-family: var(--auth-serif);
    font-size: 14.5px;
    font-style: italic;
    line-height: 1.7;
    color: rgba(255,255,255,.72);
    max-width: 42ch;   /* okunur satır uzunluğu */
}

/* --------------------------------------------------------------- masthead */

.auth-mast {
    display: block;
    text-decoration: none;
    color: inherit;
}

.auth-mast__logo {
    display: block;
    max-height: 46px;
    max-width: 190px;
    width: auto;
    margin-bottom: 14px;
    /* Koyu zeminde renkli logo kirli durabiliyor; hafif parlatıyoruz. */
    filter: brightness(0) invert(1);
    opacity: .95;
}

.auth-mast__name {
    font-family: var(--auth-serif);
    font-size: 24px;
    line-height: 1.22;
    font-weight: 600;
    letter-spacing: -.01em;
    margin: 0;
    color: #fff;
}

.auth-mast__en {
    margin-top: 7px;
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.62);
    line-height: 1.5;
}

/* Masthead altı kural çizgisi — dergi kapaklarının değişmez öğesi */
.auth-aside__top {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.14);
}

.auth-issn {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 11px;
    letter-spacing: .06em;
    color: rgba(255,255,255,.5);
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- güncel sayı */

.auth-aside__mid {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Kapak hafifçe eğik ve gölgeli: masaya bırakılmış bir sayı gibi */
.auth-cover {
    flex: 0 0 auto;
    width: 84px;
    transform: rotate(-2.2deg);
    transition: transform .25s ease;
}
.auth-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
    box-shadow:
        0 1px 0 rgba(255,255,255,.12) inset,
        0 10px 26px rgba(0,0,0,.45);
}
.auth-shell:hover .auth-cover { transform: rotate(-1deg) translateY(-2px); }

.auth-issue { min-width: 0; }

.auth-issue__label {
    display: block;
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-bottom: 4px;
}
.auth-issue__val {
    font-family: var(--auth-serif);
    font-size: 15.5px;
    color: rgba(255,255,255,.92);
}
.auth-issue__year { color: rgba(255,255,255,.55); }

/* --------------------------------------------------------------- sayılar */

.auth-stats {
    display: flex;
    gap: 0;
    margin: 0;
    width: 100%;
}
.auth-stats > div {
    flex: 1;
    padding-right: 14px;
}
.auth-stats > div + div {
    padding-left: 14px;
    border-left: 1px solid rgba(255,255,255,.12);
}
.auth-stats dt {
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    font-weight: 500;
    margin-bottom: 2px;
}
.auth-stats dd {
    margin: 0;
    font-family: var(--auth-serif);
    font-size: 21px;
    line-height: 1.1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- dizinler */

.auth-aside__foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.auth-idx__label {
    display: block;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 10px;
}
.auth-idx__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}
.auth-idx__row img {
    max-height: 20px;
    max-width: 78px;
    width: auto;
    /* Rozetler tek bir sesle konuşsun; renkli logolar paneli dağıtıyordu. */
    filter: grayscale(1) brightness(2.6) contrast(.5);
    opacity: .72;
}
.auth-idx__text {
    font-size: 10.5px;
    letter-spacing: .06em;
    color: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 3px;
    padding: 3px 8px;
}

/* --------------------------------------------------------------- ürün imzası */

.auth-sign {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11px;
    color: rgba(255,255,255,.45);
}
.auth-sign__by { letter-spacing: .02em; }

.auth-sign__ak {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .04em;
    transition: color .15s;
}
.auth-sign__ak:hover { color: #fff; }
.auth-sign__ak img {
    height: 15px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .85;
}

/* Mobil imza formun altında, açık zeminde */
.auth-sign--mobile {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid var(--auth-line);
    color: #98a2b3;
    justify-content: center;
    gap: 10px;
}
.auth-sign--mobile .auth-sign__ak { color: #475467; }
.auth-sign--mobile .auth-sign__ak:hover { color: var(--auth-ink); }
.auth-sign--mobile .auth-sign__ak img { filter: none; opacity: 1; }

/* =========================================================================
   FORM SÜTUNU
   ========================================================================= */

.auth-main {
    background: var(--auth-paper);
    padding: 30px 20px 34px;
}
.auth-main__inner { max-width: 420px; margin: 0 auto; }

.auth-head { margin-bottom: 24px; }

.auth-head__title {
    font-family: var(--auth-serif);
    font-size: 25px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -.015em;
    margin: 0 0 8px;
}
.auth-head__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--auth-muted);
}

/* Kart artık bir kutu değil, yalnızca formu tutan alan. Çerçeve levhanın
   kendisi; içeride ikinci bir kutu görsel gürültü oluyordu. */
.auth-card { background: transparent; }

/* --------------------------------------------------------------- alanlar */

.auth-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    color: #344054;
    margin-bottom: 6px;
}

.auth-field { margin-bottom: 17px; }

.auth-card .form-control,
.auth-card .form-select {
    min-height: 48px;
    font-size: 16px;            /* iOS otomatik yakınlaştırma eşiği */
    border-radius: 8px;
    border: 1px solid #d0d5dd;
    padding: 11px 14px;
    background-color: #fff;
    color: var(--auth-ink);
    transition: border-color .15s, box-shadow .15s;
}
.auth-card .form-control::placeholder { color: #b4bcc8; }
.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-accent) 18%, transparent);
}
.auth-card textarea.form-control { min-height: auto; }

.auth-input { position: relative; }
.auth-input > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 14px;
    pointer-events: none;
}
.auth-input > .form-control { padding-left: 42px; }

.auth-eye {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #98a2b3;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
}
.auth-eye:hover { color: #475467; background: #f2f4f7; }

/* --------------------------------------------------------------- düğmeler */

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .01em;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: filter .15s, background-color .15s, transform .05s;
}
.auth-btn:active { transform: translateY(1px); }

.auth-btn--primary {
    background: var(--auth-accent);
    color: #fff;
}
.auth-btn--primary:hover { color: #fff; filter: brightness(.92); }

.auth-btn--dark { background: var(--auth-ink); color: #fff; }
.auth-btn--dark:hover { color: #fff; filter: brightness(1.25); }

/* --------------------------------------------------------------- SSO */

/* Kimlik sağlayıcı düğmeleri tanıdık bir kalıba oturmalı: beyaz zemin, ince
   kenarlık, SOLDA SABİT GENİŞLİKTE logo alanı (iki düğmenin metni aynı
   hizada başlasın), ortalanmış metin. */
.auth-sso {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    margin-bottom: 9px;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    color: #344054;
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.auth-sso:hover {
    color: #344054;
    border-color: #98a2b3;
    background: #fcfcfd;
    box-shadow: 0 1px 3px rgba(16,24,40,.08);
}
.auth-sso:focus-visible {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-accent) 18%, transparent);
}
.auth-sso__icon {
    flex: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-sso__icon img { max-height: 18px; max-width: 22px; width: auto; display: block; }
.auth-sso__icon i   { font-size: 19px; }
.auth-sso__text { flex: 1 1 auto; text-align: center; padding: 0 6px; }

/* --------------------------------------------------------------- ayraç */

.auth-sep {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    color: #98a2b3;
    font-size: 11.5px;
    letter-spacing: .04em;
}
.auth-sep::before, .auth-sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-line);
}

/* --------------------------------------------------------------- sekmeler */

/* Alt çizgili sekme: yazılım kalıbı olan "hap" yerine yayıncılıkta
   alışıldık, daha sakin bir ayrım. */
.auth-tabs {
    display: flex;
    gap: 22px;
    margin: 0 0 22px;
    padding: 0;
    border-bottom: 1px solid var(--auth-line);
    list-style: none;
}
.auth-tabs .nav-item { flex: 0 0 auto; }
.auth-tabs .nav-link {
    border: 0;
    background: transparent;
    padding: 0 0 11px;
    font-size: 14px;
    font-weight: 600;
    color: #98a2b3;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -1px;
}
.auth-tabs .nav-link:hover { color: #475467; }
.auth-tabs .nav-link.active {
    color: var(--auth-ink);
    border-bottom-color: var(--auth-accent);
    background: transparent;
}

/* --------------------------------------------------------------- uyarılar */

.auth-card .alert,
.auth-main .alert {
    border: 0;
    border-left: 3px solid currentColor;
    border-radius: 0 7px 7px 0;
    font-size: 13.5px;
    line-height: 1.6;
    padding: 12px 14px;
    margin-bottom: 18px;
}
.auth-card .alert-danger  { background: #fef3f2; color: #b42318; }
.auth-card .alert-warning { background: #fffaeb; color: #b54708; }
.auth-card .alert-info    { background: #eff8ff; color: #175cd3; }
.auth-card .alert-success { background: #ecfdf3; color: #027a48; }
.auth-card .alert-light   { background: #f9fafb; color: #475467; border-left-color: #d0d5dd; }

/* --------------------------------------------------------------- bölümler */

.auth-section {
    font-family: var(--auth-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--auth-ink);
    letter-spacing: 0;
    text-transform: none;
    padding-bottom: 9px;
    margin: 30px 0 18px;
    border-bottom: 1px solid var(--auth-line);
}
.auth-section:first-of-type { margin-top: 0; }

.auth-hint {
    font-size: 12px;
    color: var(--auth-muted);
    line-height: 1.6;
    margin-top: 6px;
}

/* --------------------------------------------------------------- kod ekranı */

.kod-sayac {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fffaeb;
    color: #b54708;
    border: 1px solid #fedf89;
    border-radius: 999px;
    padding: 7px 16px;
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.kod-sayac.expired { background: #fef3f2; color: #b42318; border-color: #fecdca; }

.auth-card .kod-girdi {
    text-align: center;
    letter-spacing: .48em;
    text-indent: .48em;   /* harf aralığı son karakteri sağa itiyor */
    font-family: var(--auth-serif);
    font-size: 27px;
    font-weight: 600;
    min-height: 62px;
}

/* --------------------------------------------------------------- alt bağlantı */

.auth-foot {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--auth-line);
    font-size: 14px;
    color: var(--auth-muted);
}
.auth-foot a {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
}
.auth-foot a:hover { text-decoration: underline; }

.auth-exit { margin-top: 14px; font-size: 12.5px; }
.auth-exit a {
    color: #98a2b3;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.auth-exit a:hover { color: var(--auth-muted); }

/* =========================================================================
   MASAÜSTÜ — iki sütun
   ========================================================================= */

@media (min-width: 880px) {
    .auth-stage { padding: 40px 28px; }

    .auth-shell {
        grid-template-columns: minmax(300px, 40%) 1fr;
        border-radius: 16px;
        box-shadow:
            0 1px 2px rgba(16,24,40,.04),
            0 24px 60px -12px rgba(16,24,40,.22);
    }

    /* Yuvarlatma levhadan alt öğelere: shell'de overflow:hidden olmadığı için
       köşeleri her yarı kendisi kesiyor. */
    .auth-aside { border-radius: 16px 0 0 16px; }
    .auth-main  { border-radius: 0 16px 16px 0; }

    /* Yapışkan künye — yalnızca üste yaslanan (uzun formlu) sayfalarda.
       Alt ray (dizinler + imza) sütunun dibinde kalmaya devam ediyor. */
    .auth-aside--top .auth-aside__body {
        position: sticky;
        top: 40px;
    }

    .auth-aside {
        padding: 40px 34px 32px;
        gap: 30px;
    }

    .auth-mast__name { font-size: 28px; }
    .auth-mast__logo { max-height: 56px; }

    .auth-aside__body { gap: 30px; }
    .auth-aside__mid { flex-direction: column; align-items: flex-start; gap: 20px; }
    .auth-cover { width: 122px; }

    .auth-main { padding: 46px 44px 40px; }
    .auth-head__title { font-size: 27px; }

    /* Künye sütunu imzayı zaten taşıyor */
    .auth-sign--mobile { display: none; }
}

/* Kayıt formu geniş: iki sütunlu alan grubu için daha çok yer */
@media (min-width: 992px) {
    .auth-main__inner { max-width: 560px; }
}

/* --------------------------------------------------------------- mobil künye */

/* Dar ekranda künye sütunu ince bir şeride iniyor: kapak, sayılar ve
   dizinler gizleniyor, masthead ve ISSN kalıyor. Amaç ekranın üçte ikisini
   dekora ayırmamak. */
@media (max-width: 879.98px) {
    .auth-aside { gap: 0; padding: 20px 20px 18px; }
    .auth-aside__body { display: block; }
    .auth-aside__top { padding-bottom: 0; border-bottom: 0; }
    .auth-aside__mid,
    .auth-aside__foot { display: none; }
    .auth-mast__name { font-size: 21px; }
    .auth-mast__logo { max-height: 40px; margin-bottom: 11px; }
    .auth-issn { margin-top: 10px; }
}

/* --------------------------------------------------------------- erişim */

@media (prefers-reduced-motion: reduce) {
    .auth-btn, .auth-sso, .auth-cover,
    .auth-card .form-control, .auth-card .form-select { transition: none; }
    .auth-btn:active { transform: none; }
    .auth-shell:hover .auth-cover { transform: rotate(-2.2deg); }
}

/* color-mix desteklemeyen tarayıcılar için odak halkası yedeği */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .auth-card .form-control:focus,
    .auth-card .form-select:focus,
    .auth-sso:focus-visible {
        box-shadow: 0 0 0 3px rgba(13, 110, 253, .18);
    }
}
