/* ============================================
   Admin Login Sayfası
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

.login-body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    background: #11151c;
    color: #fff;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Arka plan – ince doku ve glow */
.login-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(230,57,70,0.10) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(230,57,70,0.08) 0%, transparent 50%),
        linear-gradient(135deg, #0e1218 0%, #161b25 50%, #0e1218 100%);
    z-index: 0;
}
.login-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.5;
}

/* Kart */
.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    padding: 24px;
}
.login-card {
    background: linear-gradient(160deg, #1c2230 0%, #161b27 100%);
    border-radius: 18px;
    padding: 70px 40px 28px;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.55),
        0 0 0 1px rgba(255,255,255,0.04),
        inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    animation: cardIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Antenler */
.logo-antennas {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 36px;
}
.logo-antennas span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1a1a1a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Z Globe Logo */
.logo-globe {
    width: 340px;
    height: auto;
    margin: -60px auto 14px;
    display: block;
    filter: drop-shadow(0 4px 14px rgba(230,57,70,0.35));
}
.logo-globe svg { width: 100%; height: 100%; }

/* Başlık */
.login-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: #fff;
    margin-top: 6px;
}
.login-title span { color: #e63946; }
.title-underline {
    width: 110px;
    height: 2px;
    margin: 8px auto 28px;
    background: linear-gradient(90deg, transparent, #e63946, transparent);
    border-radius: 2px;
}

/* Input alanı */
.login-field {
    position: relative;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    transition: all 0.25s ease;
}
.login-field:focus-within {
    border-color: rgba(230,57,70,0.55);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
    background: rgba(255,255,255,0.05);
}
.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}
.field-icon svg { width: 20px; height: 20px; }
.login-field input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    padding: 16px 16px 16px 46px;
    border-radius: 10px;
}
.login-field input::placeholder { color: rgba(255,255,255,0.45); }

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.toggle-password:hover { color: #e63946; }
.toggle-password svg { width: 20px; height: 20px; }

/* Şifremi unuttum */
.forgot-link {
    display: block;
    text-align: right;
    color: #e63946;
    font-size: 0.85rem;
    text-decoration: none;
    margin: 4px 4px 18px;
    transition: color 0.2s;
}
.forgot-link:hover { color: #ff5a68; text-decoration: underline; }

/* Captcha satırı */
.captcha-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}
.captcha-row > .captcha-box,
.captcha-row > .captcha-input-wrap {
    position: relative;
}
.captcha-input-wrap input {
    width: 100%;
    padding-right: 42px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
}
.captcha-input-wrap input::placeholder {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}
.input-refresh {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}
.input-refresh:hover { transform: translateY(-50%) rotate(180deg); }
.captcha-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.captcha-text {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0,0,0,0.4), 0 0 8px rgba(230,57,70,0.25);
    position: relative;
    z-index: 1;
    user-select: none;
}
/* Çapraz kırmızı çizgi efekti */
.captcha-box::before {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    top: 50%;
    height: 2px;
    background: rgba(230,57,70,0.7);
    transform: rotate(-12deg);
    z-index: 0;
}
.captcha-box::after {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    top: 35%;
    height: 1px;
    background: rgba(230,57,70,0.45);
    transform: rotate(8deg);
    z-index: 0;
}
.captcha-refresh {
    background: transparent;
    border: none;
    color: #e63946;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    z-index: 1;
    transition: transform 0.4s;
}
.captcha-refresh:hover { transform: rotate(180deg); }
.captcha-refresh svg { width: 20px; height: 20px; }

.captcha-row input {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s;
}
.captcha-row input::placeholder { color: rgba(255,255,255,0.45); }
.captcha-row input:focus {
    border-color: rgba(230,57,70,0.55);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
}

/* Giriş butonu */
.login-btn {
    width: 100%;
    background: linear-gradient(180deg, #ef4453 0%, #d12b3a 100%);
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(230,57,70,0.35);
    transition: all 0.25s ease;
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(230,57,70,0.5);
}
.login-btn:active { transform: translateY(0); }

/* Hata mesajı */
.login-btn.error {
    animation: shake 0.4s;
    background: linear-gradient(180deg, #b71c2b 0%, #8a141f 100%);
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
}

@media (max-width: 480px) {
    .login-card { padding: 60px 22px 22px; }
    .login-title { font-size: 1.3rem; letter-spacing: 2px; }
    .captcha-row { grid-template-columns: 1fr; }
}

/* ============================================
   Sifremi unuttum modal
   ============================================ */
.forgot-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.forgot-modal.open { display: flex; }
.forgot-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 14, 0.78);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.25s ease;
}
.forgot-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(160deg, #1c2230 0%, #161b27 100%);
    border-radius: 16px;
    padding: 36px 32px 28px;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.05);
    animation: cardIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.forgot-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.55);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}
.forgot-close:hover { color: #e63946; transform: rotate(90deg); }
.forgot-title {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 8px;
    text-align: center;
}
.forgot-title span { color: #e63946; }
.forgot-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    text-align: center;
    margin-bottom: 22px;
    line-height: 1.5;
}
.forgot-success {
    color: #4ade80;
    font-size: 0.88rem;
    text-align: center;
    margin-top: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}
.forgot-success.show { opacity: 1; }
.login-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Siteye dön linki */
.back-to-site {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: #9aa3b2;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}
.back-to-site:hover {
    color: #e63946;
}
