/* AUTH / LANDING SAYFALARI İÇİN */
body.auth-layout {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    background: transparent !important;
    /* Background is on HTML now */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    overflow-y: auto;
    /* İçerik sığmazsa scroll aç */
    color: var(--text-main);
    padding: 20px 0;
    /* Box'ın çok yapışmasını önle */
}

.container.auth-box {
    width: 90%;
    max-width: 420px;
    /* Slightly narrower for mobile look */
    text-align: center;
    margin: auto;

    background: var(--ios-card-bg);
    padding: 40px 32px;
    border-radius: var(--ios-radius);

    /* IOS Glass Effect */
    backdrop-filter: blur(var(--ios-blur));
    -webkit-backdrop-filter: blur(var(--ios-blur));
    border: 1px solid var(--ios-border);
    box-shadow: var(--ios-shadow);

    /* Animation */
    animation: iosSlideUp 0.8s var(--spring-easing) forwards;
    opacity: 0;
    transform: translateY(20px);

    position: relative;
    z-index: 10;
}



@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LOGIN ELEMANLARI */
.auth-orb-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    /* Nöronların (-1) önünde, Box'ın (10) arkasında */
    pointer-events: none;
    /* Tıklamaları engellemesin */

    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    width: 100px;
    /* Sabit boyut verelim ki merkezleme düzgün olsun */
}



.login-logo {
    width: 80px;
    height: auto;
    margin: 0 auto 16px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    display: none;
    /* Varsayılan gizli */
}

/* 
   MANTIK:
   Body class="apple-light" ise -> .logo-theme-light GÖRÜNÜR
   Body class="apple-dark"  ise -> .logo-theme-dark GÖRÜNÜR
*/

/* Gündüz Modu (Light Theme) -> Koyu Logo Görünsün */
body.apple-light .logo-theme-light,
body.siri-light .logo-theme-light,
:root[data-theme="apple-light"] .logo-theme-light,
:root[data-theme="siri-light"] .logo-theme-light {
    display: block !important;
}

/* Gece Modu (Dark Theme) -> Açık Logo Görünsün */
body.apple-dark .logo-theme-dark,
body.siri-dark .logo-theme-dark,
:root[data-theme="apple-dark"] .logo-theme-dark,
:root[data-theme="siri-dark"] .logo-theme-dark {
    display: block !important;
}



.title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    /* Apple style tight spacing */
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.subtitle {
    margin: 0 0 32px;
    color: var(--text-muted);
    font-size: 15px;
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.login-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.oauth-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.oauth-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    color: var(--text-main);
    text-decoration: none;
    overflow: hidden;
    /* SVG'lerin taşmasını önle */
}

.oauth-btn svg {
    display: block;
    width: 24px;
    height: 24px;
}

.oauth-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.divider-text {
    color: var(--text-muted);
    font-size: 13px;
    margin: 10px 0 20px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.full-width-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.full-width-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.full-width-btn i {
    font-size: 18px;
}

/* YENİ EKLENEN FORM ELEMENTLERİ (Apple Style) */
/* IOS FORM ELEMENTS */
.input-group {
    position: relative;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.input-group:focus-within {
    transform: scale(1.02);
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s;
    z-index: 2;
}

.input-group input {
    width: 100%;
    /* Deep Glass Input */
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);

    padding: 18px 20px 18px 54px;
    /* Taller touch target */
    border-radius: 18px;
    /* Smooth corners */

    font-size: 17px;
    /* Legible size */
    font-weight: 400;
    letter-spacing: -0.01em;
    color: white;

    transition: all 0.3s var(--spring-easing);
    outline: none;
    font-family: var(--font-sf);
    box-sizing: border-box;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.input-group input:focus+i {
    color: white;
}

.submit-btn {
    width: 100%;
    background: #007AFF;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.submit-btn:hover {
    background: #006ce6;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 122, 255, 0.4);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* 2FA Input (login_2fa.php) */
.two-fa-input {
    text-align: center;
    letter-spacing: 5px;
    font-size: 24px;
    width: 200px !important;
    margin: 20px auto !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px;
    border-radius: 8px;
    display: block;
}

.two-fa-input::placeholder {
    letter-spacing: normal;
    font-size: 14px;
    opacity: 0.3;
}

/* ============================================
   2FA SETUP SPECIFIC STYLES
   ============================================ */
.setup-container {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.qr-wrapper {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.secret-key {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 6px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
    color: #4ade80;
    font-size: 14px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--orb-main);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
}

.step-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 15px;
    text-align: left;
}