/* ==========================================================================
   PENGUVL — Auth Sayfaları (Giriş / Kayıt / Şifre Sıfırlama)
   HUD temalı, koyu mor zemin, mor/menekşe vurgu.
   ========================================================================== */

body.auth-body {
    margin: 0;
    min-height: 100vh;
    background:
            radial-gradient(circle at 15% 10%, rgba(139, 92, 246, 0.10), transparent 42%),
            radial-gradient(circle at 85% 90%, rgba(109, 40, 217, 0.10), transparent 48%),
            #0a0714;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #f5f6f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

/* ---------- Anasayfa / Geri dön linki ---------- */
.auth-back-home {
    position: fixed;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.18);
    background: rgba(139, 92, 246, 0.06);
    color: #c3bce0;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    z-index: 20;
}
.auth-back-home:hover {
    color: #f5f6f7;
    border-color: rgba(167, 139, 250, 0.45);
    background: rgba(139, 92, 246, 0.14);
}

/* ---------- Kart iskeleti ---------- */
.auth-shell {
    position: relative;
    width: 100%;
    max-width: 940px;
    min-height: 500px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #120c1e;
    border: 1px solid rgba(167, 139, 250, 0.14);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 90px -30px rgba(30, 10, 60, 0.65);
}

/* köşe HUD işaretleri */
.auth-shell::before,
.auth-shell::after,
.auth-shell .corner-tr,
.auth-shell .corner-bl {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    z-index: 5;
    pointer-events: none;
}
.auth-shell::before { /* top-left */
    top: -1px; left: -1px;
    border-top: 2px solid #a78bfa;
    border-left: 2px solid #a78bfa;
    border-radius: 4px 0 0 0;
}
.auth-shell::after { /* bottom-right */
    bottom: -1px; right: -1px;
    border-bottom: 2px solid #a78bfa;
    border-right: 2px solid #a78bfa;
    border-radius: 0 0 4px 0;
}
.auth-shell .corner-tr {
    top: -1px; right: -1px;
    border-top: 2px solid rgba(167, 139, 250, 0.32);
    border-right: 2px solid rgba(167, 139, 250, 0.32);
    border-radius: 0 4px 0 0;
}
.auth-shell .corner-bl {
    bottom: -1px; left: -1px;
    border-bottom: 2px solid rgba(167, 139, 250, 0.32);
    border-left: 2px solid rgba(167, 139, 250, 0.32);
    border-radius: 0 0 0 4px;
}

/* ---------- Sol görsel panel ---------- */
.auth-visual {
    position: relative;
    background:
            linear-gradient(165deg, #1b1330 0%, #140d22 55%, #0e0918 100%);
    border-right: 1px solid rgba(167, 139, 250, 0.1);
    padding: 40px 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}
.auth-visual::before {
    /* dikey ince tarama çizgileri, HUD dokusu */
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.02) 0px,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 26px
    );
    pointer-events: none;
}
.auth-visual::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -140px;
    bottom: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 70%);
    pointer-events: none;
}

.auth-visual-top { position: relative; z-index: 2; }

.auth-visual-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.14em;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.3);
    padding: 6px 12px;
    border-radius: 999px;
}
.auth-visual-tag .dot-live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 8px 1px rgba(167, 139, 250, 0.9);
}

.auth-visual-heading {
    position: relative;
    z-index: 2;
    font-family: 'Jersey 25', sans-serif;
    font-weight: 400;
    font-size: 50px;
    line-height: 0.98;
    letter-spacing: 0.01em;
    color: #f5f6f7;
    margin: 20px 0 12px;
}
.auth-visual-text {
    position: relative;
    z-index: 2;
    font-size: 14.5px;
    line-height: 1.65;
    color: #a29bc0;
    max-width: 320px;
    margin: 0;
}

.auth-visual-stats {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 28px;
    margin-top: 28px;
}
.auth-visual-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.auth-visual-stats .stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #f5f6f7;
}
.auth-visual-stats .stat-label {
    font-size: 12px;
    color: #837c9c;
}

.auth-visual-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: #6b6584;
    margin-top: auto;
    padding-top: 28px;
}
.auth-visual-brand .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a78bfa;
    display: inline-block;
}

/* ---------- Sağ form paneli ---------- */
.auth-panel {
    background: #16101f;
    padding: 48px 44px;
    display: flex;
    align-items: center;
}
.auth-panel-inner {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}

.auth-header { margin-bottom: 26px; }
.auth-header .auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: #d6d2e3;
    text-decoration: none;
    margin-bottom: 20px;
}
.auth-header .auth-logo .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 8px 1px rgba(167, 139, 250, 0.8);
}
.auth-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #f5f6f7;
}
.auth-header p {
    font-size: 13.5px;
    color: #948db2;
    margin: 0;
    line-height: 1.5;
}

/* ---------- Form ---------- */
.auth-shell form { margin-top: 4px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #c3bce0;
    margin-bottom: 8px;
}

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap i.fa-solid:first-child,
.input-wrap > i {
    position: absolute;
    left: 14px;
    font-size: 13.5px;
    color: #726c8c;
    transition: color 0.2s ease;
    pointer-events: none;
    z-index: 2;
}
.input-wrap input {
    width: 100%;
    box-sizing: border-box;
    background: #0e0a17;
    border: 1px solid rgba(167, 139, 250, 0.16);
    border-radius: 10px;
    padding: 12px 14px 12px 40px;
    font-size: 14px;
    color: #f5f6f7;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.input-wrap input::placeholder { color: #6b6584; }
.input-wrap input:focus {
    border-color: #a78bfa;
    background: #110c1c;
}
.input-wrap:focus-within > i { color: #a78bfa; }

/* Chrome/Edge otomatik doldurma rengini tema ile uyumlu hale getir */
.input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus,
.input-wrap input:-webkit-autofill:active {
    -webkit-text-fill-color: #f5f6f7;
    caret-color: #f5f6f7;
    box-shadow: 0 0 0px 1000px #0e0a17 inset;
    -webkit-box-shadow: 0 0 0px 1000px #0e0a17 inset;
    transition: background-color 9999s ease-in-out 0s;
}

.input-wrap .toggle-pw {
    position: absolute;
    right: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #726c8c;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    z-index: 2;
}
.input-wrap .toggle-pw i { position: static; }
.input-wrap .toggle-pw:hover { color: #c3bce0; background: rgba(167, 139, 250, 0.08); }
.input-wrap.has-toggle input { padding-right: 40px; }

.field-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.field-top-row label { margin-bottom: 0; }

.forgot-link {
    font-size: 12.5px;
    color: #837c9c;
    text-decoration: none;
    transition: color 0.2s ease;
}
.forgot-link:hover { color: #a78bfa; }

.auth-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 13px 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #150f22;
    background: #a78bfa;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s ease, transform 0.05s ease;
}
.auth-btn:hover { background: #c4b5fd; }
.auth-btn:active { transform: scale(0.99); }

.auth-footer {
    margin-top: 22px;
    font-size: 13px;
    color: #837c9c;
    text-align: center;
}
.auth-footer a {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }

/* ---------- Uyarı / hata / başarı kutuları ---------- */
.auth-error-box {
    background: rgba(239, 68, 68, 0.09);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #f27171;
    border-radius: 10px;
    padding: 13px 15px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
}
.auth-error-box p { margin: 0; }
.auth-error-box p + p { margin-top: 6px; }

.auth-success-box {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.32);
    color: #c4b5fd;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 4px;
    text-align: center;
}
.auth-success-box p {
    margin: 0 0 14px;
    font-weight: 600;
    font-size: 13.5px;
    color: #ece7fb;
}
.auth-success-box .auth-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; max-width: 420px; }
    .auth-visual { display: none; }
    .auth-panel { padding: 40px 28px; }
}
@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .auth-back-home { top: 16px; left: 16px; }
}

/* ---------- OTP Doğrulama Kutucukları (verify.php) ---------- */
.otp-boxes {
    display: flex;
    gap: 10px;
}
.otp-box {
    width: 46px;
    height: 54px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    background: #0e0a17;
    border: 1px solid rgba(167, 139, 250, 0.16);
    border-radius: 10px;
    color: #f5f6f7;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.05s ease;
}
.otp-box:focus {
    border-color: #a78bfa;
    background: #110c1c;
    transform: translateY(-1px);
}
.otp-box::-webkit-outer-spin-button,
.otp-box::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.resend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 4px;
    font-size: 13px;
    color: #837c9c;
}
.resend-btn {
    background: none;
    border: none;
    color: #a78bfa;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}
.resend-btn:hover:not(:disabled) { text-decoration: underline; }
.resend-btn:disabled {
    color: #6b6584;
    cursor: default;
}

@media (max-width: 480px) {
    .otp-boxes { gap: 7px; }
    .otp-box { width: 40px; height: 48px; font-size: 18px; }
}