/* ==========================================================================
   Base Tokens & Reset Optimization (Elegant Soft Luxe Style)
   ========================================================================== */
:root {
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Softened Premium Luxury Palette (Replaces harsh dark navy) */
    --bg-slate-luxe: #1e2538;
    --bg-gradient-start: #1a2035;
    --bg-gradient-end: #2d364f;
    
    --text-main: #1c1c1e;
    --text-muted: #8e8e93;
    --text-white: #ffffff;
    --text-white-dim: rgba(255, 255, 255, 0.65);
    
    --input-border: #e5e5ea;
    --input-bg: #f2f2f7;
    --input-focus: #0071e3;
    --error-main: #ff3b30;
    --error-bg: #fff2f2;
    
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.15s ease;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(15px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.auth-body {
    font-family: var(--font-primary);
    background-color: #f5f5f7;
    color: var(--text-main);
    overflow: hidden; /* Prevents desktop baseline micro-scrolling */
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Layout Structures (Proportional Split)
   ========================================================================== */
.auth-container {
    width: 100vw;
    min-height: 100vh;
}

.left-panel {
    background-color: var(--bg-slate-luxe);
    padding: 3rem;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(140deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    z-index: 1;
}

.left-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 2.5rem;
}

.right-panel {
    background-color: #ffffff;
    padding: 2rem;
}

/* ==========================================================================
   Brand & Logo Structures (Kibar Boyutland覺rma)
   ========================================================================== */
.brand-logo-area {
    display: block;
}

.auth-brand-logo {
    max-width: 320px; /* Reduced scale for premium appearance */
    height: auto;
    object-fit: contain;
}

.mobile-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-brand-logo-mobile {
    width: 200px;
    height: auto;
    object-fit: contain;
}

/* ==========================================================================
   Typography Scales
   ========================================================================== */
.hero-title {
    font-weight: 600;
    font-size: 2.25rem;
    line-height: 1.2;
    color: var(--text-white);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-white-dim);
    line-height: 1.4;
}

/* ==========================================================================
   Compact Feature Cards System
   ========================================================================== */
.feature-cards-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    margin-top: auto;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon-box {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.feature-text h3 {
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.05rem;
}

.feature-text p {
    color: var(--text-white-dim);
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Elegant Micro Form UI Card (Zero-Scroll Optimization)
   ========================================================================== */
.auth-form-card {
    max-width: 380px; /* Reduced card scale for high density aesthetics */
    width: 100%;
    display: flex;
    flex-direction: column;
}

.auth-tabs {
    display: flex;
    position: relative;
    border-bottom: 1px solid var(--input-border);
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0;
    margin-right: 2rem;
    position: relative;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: var(--transition-fast);
}

.tab-btn.active {
    color: var(--text-main);
}

.tab-slider-line {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    background-color: var(--text-main);
    width: 0;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Form Input Architectures
   ========================================================================== */
.auth-views-container {
    position: relative;
    width: 100%;
}

.auth-view-pane {
    display: none;
    opacity: 0;
}

.auth-view-pane.active-pane {
    display: block;
    opacity: 1;
}

.custom-form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-leading-icon {
    position: absolute;
    left: 0.85rem;
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.custom-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.25rem; /* Tighter padding for structural compression */
    font-size: 0.925rem;
    font-family: var(--font-primary);
    color: var(--text-main);
    background-color: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    transition: var(--transition-fast);
}

.custom-input:focus {
    background-color: #ffffff;
    border-color: var(--text-main);
}

.password-toggle-btn {
    position: absolute;
    right: 0.85rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Password Strength Compact Styling */
.password-strength-wrapper {
    margin-top: 0.45rem;
}

.password-strength-meter {
    height: 3px;
    background-color: var(--input-border);
    border-radius: 1.5px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.strength-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    margin-top: 0.2rem;
}

.strength-status-text {
    font-weight: 600;
}

/* ==========================================================================
   Options Row & Typography Interactors
   ========================================================================== */
.option-row {
    font-size: 0.825rem;
}

.custom-checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 1.5rem;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 15px;
    width: 15px;
    background-color: var(--input-bg);
    border: 1px solid #d1d1d6;
    border-radius: 4px;
}

.custom-checkbox-container input:checked ~ .checkbox-checkmark {
    background-color: var(--text-main);
    border-color: var(--text-main);
}

.checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 7px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.custom-checkbox-container input:checked ~ .checkbox-checkmark:after {
    display: block;
}

.forgot-password-link {
    background: none;
    border: none;
    color: var(--input-focus);
    font-weight: 500;
    cursor: pointer;
}

/* ==========================================================================
   Action Layout System
   ========================================================================== */
.auth-submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--text-main);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.auth-submit-btn:hover {
    opacity: 0.9;
}

/* Custom Alert & Messages Engine styles */
.form-group.has-error .custom-input {
    border-color: var(--error-main);
    background-color: var(--error-bg);
}

.feedback-msg {
    display: none;
    font-size: 0.75rem;
    color: var(--error-main);
    font-weight: 500;
    margin-top: 0.25rem;
}

.form-group.has-error .feedback-msg {
    display: block;
}

.alert-danger-custom {
    background-color: var(--error-bg);
    border: 1px solid rgba(255, 59, 48, 0.15);
    border-radius: 8px;
    color: var(--error-main);
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
}

/* ==========================================================================
   Modal Framework Structure
   ========================================================================== */
.modal-blur-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1050;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-blur-backdrop:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog-centered-custom {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.modal-content-glass {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-title-custom {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close-btn {
    background: var(--input-bg);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

.ripple-element {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.45s linear;
    background-color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

@keyframes ripple-animation {
    to { transform: scale(4); opacity: 0; }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991.98px) {
    body.auth-body {
        overflow-y: auto; /* Re-enables safe scrolling on mobile viewports */
    }
    .right-panel {
        padding: 2rem 1rem;
        align-items: flex-start;
        justify-content: flex-start;
    }
}

/* ==========================================================================
   Back Home Link Style
   ========================================================================== */
.back-home-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.back-home-link:hover {
    color: var(--text-main);
}

.back-home-link i {
    transition: transform 0.2s ease;
}

.back-home-link:hover i {
    transform: translateX(3px); /* Üzerine gelindiğinde sağa doğru hafifçe kayar */
}