/* ########################################
# Dungeon Sword - Giriş HUD v2.0          #
# Ultra Premium RPG Atmosfer              #
###########################################
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

:root {
    --altin:          #b8860b;
    --altin-parlak:   #ffd700;
    --altin-soluk:    #8a6914;
    --altin-glow:     rgba(255, 215, 0, 0.18);
    --kan:            #8b0000;
    --kan-parlak:     #c0392b;
    --demir:          #2c2c3a;
    --mor-derin:      #0d0a1a;
    --mor-orta:       #160f2e;
    --lacivert:       #070518;
    --metin-ana:      #e8dcc8;
    --metin-soluk:    #7a6e5a;
    --metin-altin:    #d4a840;
    --kart-bg:        rgba(8, 5, 20, 0.88);
    --kart-kenar:     rgba(184, 134, 11, 0.25);
    --input-bg:       rgba(255, 255, 255, 0.03);
    --blur-effekt:    blur(20px);
    --gecis:          0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--lacivert);
    font-family: 'Cormorant Garamond', serif;
    color: var(--metin-ana);
}

/* ===================== ARKAPLAN ===================== */
.arkaplan {
    position: fixed;
    inset: 0;
    background-image: url('/resimler/arkaplan2.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: brightness(0.28) saturate(0.7) hue-rotate(-10deg);
    transform: scale(1.05);
    animation: arkaplanKayan 30s ease-in-out infinite alternate;
}

@keyframes arkaplanKayan {
    from { transform: scale(1.05) translateX(0); }
    to   { transform: scale(1.12) translateX(-2%); }
}

.arkaplan-sis {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 80%, rgba(80, 0, 120, 0.35), transparent),
        radial-gradient(ellipse 60% 40% at 20% 20%, rgba(0, 0, 80, 0.4), transparent),
        radial-gradient(ellipse 100% 100% at 50% 100%, rgba(0, 0, 0, 0.9), transparent 60%);
    z-index: 1;
}

/* Parıltı partikülleri */
.arkaplan-sis::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,215,0,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 10%, rgba(255,215,0,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 70%, rgba(200,150,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 85%, rgba(255,215,0,0.25) 0%, transparent 100%);
    animation: yildizCintilamasi 4s ease-in-out infinite alternate;
}

@keyframes yildizCintilamasi {
    0%   { opacity: 0.5; }
    50%  { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Ambient ateş parlaması sol alt */
.arkaplan-sis::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.2), transparent 70%);
    animation: atesiYak 5s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes atesiYak {
    from { opacity: 0.4; transform: scale(1); }
    to   { opacity: 0.8; transform: scale(1.15); }
}

/* ===================== EKRAN ===================== */
.ekran {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

/* ===================== FORM KARTI ===================== */
.form-kart {
    width: 100%;
    max-width: 320px;
    padding: 28px 26px 24px;
    background: var(--kart-bg);
    border: 1px solid var(--kart-kenar);
    border-radius: 14px;
    backdrop-filter: var(--blur-effekt);
    -webkit-backdrop-filter: var(--blur-effekt);
    box-shadow:
        0 0 0 1px rgba(184,134,11,0.08),
        0 30px 60px rgba(0,0,0,0.8),
        0 0 80px rgba(90, 0, 140, 0.12),
        inset 0 1px 0 rgba(255,215,0,0.06);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

/* Kart içi dekoratif ışık */
.form-kart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--altin-parlak), transparent);
    opacity: 0;
    transition: opacity 0.8s ease 0.4s;
}

.form-kart::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255,215,0,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.form-kart.aktif {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.form-kart.aktif::before {
    opacity: 1;
}

.form-kart.cikis {
    opacity: 0;
    transform: translateY(-20px) scale(1.02);
    transition: all 0.4s ease-in;
}

/* Üst çizgi parlaması */
.kart-ust-cizgi {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--altin-soluk) 20%,
        var(--altin-parlak) 50%,
        var(--altin-soluk) 80%,
        transparent 100%);
    animation: ustCizgiParlak 3s ease-in-out infinite;
}

@keyframes ustCizgiParlak {
    0%, 100% { opacity: 0.5; box-shadow: none; }
    50%      { opacity: 1; box-shadow: 0 0 12px var(--altin-parlak); }
}

/* ===================== LOGO ===================== */
.oyun-logo-img-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(184,134,11,0.15);
    position: relative;
}

.oyun-logo-img-wrap::after {
    content: '✦';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: var(--altin);
    background: var(--kart-bg);
    padding: 0 6px;
    animation: elmasParla 2.5s ease-in-out infinite;
}

@keyframes elmasParla {
    0%, 100% { color: var(--altin-soluk); text-shadow: none; }
    50%      { color: var(--altin-parlak); text-shadow: 0 0 8px var(--altin-parlak); }
}

.ana-logo {
    max-width: 125px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(184,134,11,0.4));
    animation: logoParlak 4s ease-in-out infinite alternate;
}

@keyframes logoParlak {
    from { filter: drop-shadow(0 0 8px rgba(184,134,11,0.3)); }
    to   { filter: drop-shadow(0 0 18px rgba(255,215,0,0.55)); }
}

/* ===================== MESAJ KUTUSU ===================== */
.mesaj-kutu {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s ease;
    letter-spacing: 0.3px;
}

.mesaj-kutu.hata {
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid rgba(192, 57, 43, 0.4);
    border-left: 3px solid var(--kan-parlak);
    color: #ff9999;
    padding: 10px 12px;
    max-height: 80px;
    margin-bottom: 14px;
    animation: titresim 0.35s ease;
}

.mesaj-kutu.basari {
    background: rgba(0, 80, 40, 0.2);
    border: 1px solid rgba(0, 160, 80, 0.35);
    border-left: 3px solid #00c851;
    color: #7dffa0;
    padding: 10px 12px;
    max-height: 80px;
    margin-bottom: 14px;
}

@keyframes titresim {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-4px); }
    40%      { transform: translateX(4px); }
    60%      { transform: translateX(-3px); }
    80%      { transform: translateX(3px); }
}

/* ===================== INPUT GRUBU ===================== */
.input-grup {
    margin-bottom: 13px;
    position: relative;
}

.input-grup label {
    font-family: 'Cinzel', serif;
    font-size: 8.5px;
    font-weight: 600;
    color: var(--metin-soluk);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.label-ikon {
    font-size: 10px;
}

.input-grup input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid rgba(184,134,11,0.12);
    border-radius: 9px;
    padding: 10px 13px;
    color: var(--metin-ana);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    transition: var(--gecis);
    caret-color: var(--altin-parlak);
}

.input-grup input::placeholder {
    color: rgba(122, 110, 90, 0.5);
    font-style: italic;
}

.input-grup input:focus {
    background: rgba(184,134,11,0.06);
    border-color: var(--altin);
    outline: none;
    box-shadow:
        0 0 0 1px rgba(184,134,11,0.15),
        0 0 20px rgba(184,134,11,0.1),
        inset 0 1px 0 rgba(255,215,0,0.04);
}

/* Focus satır animasyonu */
.input-grup input:focus + .input-cizgi,
.input-cizgi {
    display: none; /* Sadece border ile çalışıyoruz */
}

/* ===================== GÜVENLİK SATIRI ===================== */
.guvenlik-satir {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.guvenlik-input {
    flex: 1;
    margin-bottom: 0 !important;
}

.captcha-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.captcha-img {
    height: 34px;
    border: 1px solid rgba(184,134,11,0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--gecis);
    filter: contrast(1.1) brightness(0.95);
}

.captcha-img:hover {
    border-color: var(--altin);
    box-shadow: 0 0 8px rgba(184,134,11,0.2);
}

.captcha-yenile-btn {
    width: 100%;
    background: rgba(184,134,11,0.15);
    border: 1px solid rgba(184,134,11,0.25);
    border-radius: 7px;
    color: var(--altin);
    font-family: 'Cinzel', serif;
    font-size: 7px;
    font-weight: 600;
    padding: 4px 7px;
    cursor: pointer;
    transition: var(--gecis);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.captcha-yenile-btn:hover {
    background: rgba(184,134,11,0.28);
    border-color: var(--altin-parlak);
    color: var(--altin-parlak);
}

/* ===================== ANA BUTON ===================== */
.btn-ana {
    width: 100%;
    padding: 13px;
    background: linear-gradient(180deg, #3a2c10 0%, #2a1f0a 100%);
    border: 1px solid rgba(184,134,11,0.35);
    border-radius: 10px;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 600;
    color: #c9a84c;
    cursor: pointer;
    transition: var(--gecis);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,215,0,0.08);
}

/* Buton parıltı efekti */
.btn-ana::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-ana:hover::before {
    left: 150%;
}

.btn-ana:hover {
    background: linear-gradient(180deg, #4a3818 0%, #332510 100%);
    border-color: rgba(184,134,11,0.6);
    transform: translateY(-1px);
    box-shadow:
        0 6px 22px rgba(0,0,0,0.55),
        0 0 18px rgba(184,134,11,0.12),
        inset 0 1px 0 rgba(255,215,0,0.1);
    color: #e0b85a;
}

.btn-ana:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.btn-ana:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-metin {
    position: relative;
    z-index: 1;
}

/* Yükleniyor döndürme */
.btn-yukleniyor {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(201,168,76,0.2);
    border-top-color: #c9a84c;
    border-radius: 50%;
    animation: don 0.7s linear infinite;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.yukleniyor-aktif .btn-yukleniyor { display: block; }
.yukleniyor-aktif .btn-metin { opacity: 0.7; }

@keyframes don {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ===================== ALT LİNK ===================== */
.alt-link {
    text-align: center;
    margin-top: 18px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.78rem;
    color: var(--metin-soluk);
    letter-spacing: 0.3px;
}

.alt-link a {
    color: var(--altin);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    border-bottom: 1px solid rgba(184,134,11,0.3);
    padding-bottom: 1px;
    transition: var(--gecis);
}

.alt-link a:hover {
    color: var(--altin-parlak);
    border-bottom-color: var(--altin-parlak);
    text-shadow: 0 0 8px rgba(255,215,0,0.3);
}

/* ===================== LOGO & SLOGAN (metin versiyonu) ===================== */
.oyun-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(184,134,11,0.15);
}

.logo-ikon {
    font-size: 1rem;
    color: var(--altin);
    margin-bottom: 5px;
}

.logo-buyuk {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--altin-parlak);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.logo-slogan {
    font-family: 'Cormorant Garamond', serif;
    font-size: 8px;
    font-style: italic;
    color: var(--metin-soluk);
    letter-spacing: 1.5px;
    margin-top: 4px;
    opacity: 0.7;
}