/* Auth pages modern layout */
.auth-shell {
    --auth-ink: #121926;
    --auth-muted: #5b6778;
    --auth-strong: #0f172a;
    --auth-surface: rgba(255, 255, 255, 0.84);
    --auth-surface-strong: rgba(255, 255, 255, 0.95);
    --auth-border: rgba(15, 23, 42, 0.08);
    --auth-accent: #ff7a59;
    --auth-accent-2: #2fb5b0;
    --auth-accent-3: #f6c453;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--auth-ink);
    background:
        radial-gradient(120% 80% at 10% 10%, rgba(255, 191, 128, 0.35), transparent 60%),
        radial-gradient(100% 70% at 90% 0%, rgba(99, 206, 221, 0.25), transparent 55%),
        linear-gradient(160deg, #f7f8fb 0%, #f1f4f8 55%, #eef2f7 100%);
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.auth-shell input,
.auth-shell button,
.auth-shell select,
.auth-shell textarea {
    font-family: inherit;
}

@media (max-width: 991.98px) {
    .auth-shell {
        padding: 110px 0 60px;
    }
}

.auth-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-ambient::after {
    content: "";
    position: absolute;
    inset: -10% 0 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
}

.auth-orb {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
}

.auth-orb--one {
    background: rgba(255, 133, 82, 0.55);
    top: -90px;
    left: -60px;
}

.auth-orb--two {
    background: rgba(47, 181, 176, 0.45);
    top: 10%;
    right: -120px;
}

.auth-orb--three {
    background: rgba(246, 196, 83, 0.4);
    bottom: -120px;
    left: 20%;
}

.auth-container {
    position: relative;
    z-index: 1;
}

.auth-panel {
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
    position: relative;
    animation: auth-rise 0.8s ease both;
}

.auth-panel--intro {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72));
    animation-delay: 0.05s;
}

.auth-panel--form {
    background: var(--auth-surface-strong);
    animation-delay: 0.15s;
}

@media (max-width: 575.98px) {
    .auth-panel {
        padding: 32px 26px;
    }
}

.auth-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: var(--auth-strong);
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 122, 89, 0.15);
    color: #a8452b;
    font-weight: 600;
    font-size: 0.85rem;
}

.auth-display {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 2.4vw, 2.6rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.auth-lead {
    color: var(--auth-muted);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.auth-checklist {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 500;
    color: var(--auth-strong);
    animation: auth-rise 0.8s ease both;
    animation-delay: calc(0.2s + var(--i, 0) * 0.08s);
}

.auth-check i {
    color: var(--auth-accent-2);
    font-size: 1.1rem;
}

.auth-highlight {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px dashed rgba(255, 122, 89, 0.35);
}

.auth-highlight h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.auth-highlight p {
    margin-bottom: 0;
    color: var(--auth-muted);
    font-size: 0.95rem;
}

.auth-highlight-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-3));
    color: #fff;
    flex-shrink: 0;
}

.auth-steps {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.auth-step {
    display: flex;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--auth-border);
    animation: auth-rise 0.8s ease both;
    animation-delay: calc(0.2s + var(--i, 0) * 0.08s);
}

.auth-step-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-accent-2), #3b82f6);
}

.auth-step h3 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.auth-step p {
    margin-bottom: 0;
    color: var(--auth-muted);
    font-size: 0.95rem;
}

.auth-form-header {
    margin-bottom: 1.25rem;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(47, 181, 176, 0.16);
    color: #177c78;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.auth-form-header h2 {
    font-family: 'Fraunces', serif;
    margin-bottom: 0.35rem;
}

.auth-form-header p {
    color: var(--auth-muted);
    margin-bottom: 0;
}

.auth-form .form-control {
    border-radius: 14px;
    border: 1px solid var(--auth-border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
}

.auth-form .form-control:focus {
    border-color: rgba(47, 181, 176, 0.6);
    box-shadow: 0 0 0 4px rgba(47, 181, 176, 0.12);
}

.auth-form .form-floating > label {
    color: var(--auth-muted);
}

.auth-form .form-text {
    color: var(--auth-muted);
}

.auth-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--auth-border);
    background: rgba(255, 255, 255, 0.9);
    color: var(--auth-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.auth-toggle:hover {
    background: rgba(255, 255, 255, 0.98);
    color: var(--auth-strong);
}

.auth-btn {
    background: linear-gradient(120deg, var(--auth-accent), var(--auth-accent-2));
    border: none;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: none;
    padding: 0.9rem 1.4rem;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(255, 122, 89, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(47, 181, 176, 0.3);
    color: #fff;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--auth-muted);
}

.auth-link {
    color: var(--auth-strong);
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-link-muted {
    color: var(--auth-muted);
    font-weight: 500;
}

.auth-legal {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--auth-muted);
}

@keyframes auth-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-panel,
    .auth-check,
    .auth-step {
        animation: none;
    }
}

/* ===================================
   MOBILE RESPONSIVE IMPROVEMENTS
   =================================== */

/* Mobile First - Küçük ekranlar (< 576px) */
@media (max-width: 575.98px) {
    .auth-shell {
        padding: 90px 0.75rem 40px;
    }
    
    .auth-panel {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .auth-display {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .auth-lead {
        font-size: 0.95rem;
    }
    
    .auth-checklist {
        gap: 0.5rem;
    }
    
    .auth-check {
        font-size: 0.9rem;
    }
    
    .auth-highlight {
        padding: 0.85rem;
        flex-direction: column;
        text-align: center;
    }
    
    .auth-highlight-icon {
        margin: 0 auto;
    }
    
    .auth-form-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-form .form-control,
    .auth-form .form-floating {
        font-size: 16px; /* iOS zoom önleme */
    }
    
    .auth-btn {
        padding: 0.85rem 1.2rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .auth-orb {
        width: 200px;
        height: 200px;
    }
}

/* Tablet (576px - 991px) */
@media (min-width: 576px) and (max-width: 991.98px) {
    .auth-shell {
        padding: 100px 1rem 50px;
    }
    
    .auth-panel {
        padding: 32px 28px;
    }
    
    .auth-display {
        font-size: 2rem;
    }
    
    .auth-orb {
        width: 280px;
        height: 280px;
    }
}

/* Touch optimization - Daha büyük dokunma alanları */
@media (hover: none) and (pointer: coarse) {
    .auth-btn {
        min-height: 48px;
        padding: 1rem 1.5rem;
    }
    
    .auth-form .form-control {
        min-height: 48px;
        padding: 12px 16px;
    }
    
    .auth-link {
        display: inline-block;
        padding: 8px 4px;
        min-height: 44px;
        line-height: 1.5;
    }
    
    .auth-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Landscape orientation - Mobil landscape */
@media (max-width: 991.98px) and (orientation: landscape) {
    .auth-shell {
        padding: 80px 1rem 40px;
    }
    
    .auth-panel {
        padding: 20px;
    }
    
    .auth-display {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .auth-checklist,
    .auth-highlight,
    .auth-steps {
        margin-top: 1rem;
    }
    
    .auth-orb {
        display: none; /* Landscape'de orb'ları gizle */
    }
}

/* High DPI ekranlar için */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .auth-shell {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
