/* =================================================================
   AUTH CSS - Premium Authentication Pages
   Egitim Sosyal Tesisler Mudurlugu
   =================================================================
   Supports: Light/Dark themes via CSS variables
   Pages: Giris, Kayit, KayitBasarili, SifreUnuttum, SifreSifirla, EpostaUnuttum
   ================================================================= */

/* -----------------------------------------------------------------
   1. AUTH LAYOUT - Split Panel (Left brand, Right form)
   ----------------------------------------------------------------- */

.auth-page {
    display: flex;
    align-items: stretch;
    background: var(--body-bg, #f0f4f8);
    font-family: 'Inter', sans-serif;
}

/* -- Brand Panel (Left) ----------------------------------------- */
.auth-brand-panel {
    flex: 0 0 44%;
    max-width: 44%;
    background: linear-gradient(160deg, var(--akdeniz-mavi-900, #032849) 0%, var(--akdeniz-mavi-700, #0A4D8C) 50%, var(--akdeniz-mavi-600, #1468AB) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 3rem 2rem;
    color: #fff;
    text-align: center;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(232, 119, 34, 0.08);
    top: -120px;
    right: -140px;
    pointer-events: none;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -80px;
    left: -100px;
    pointer-events: none;
}

.auth-brand-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-brand-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: #fff;
}

.auth-brand-shapes .shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: -60px;
    animation: auth-float 8s ease-in-out infinite;
}

.auth-brand-shapes .shape-2 {
    width: 120px;
    height: 120px;
    bottom: 15%;
    right: 10%;
    animation: auth-float 6s ease-in-out infinite reverse;
}

.auth-brand-shapes .shape-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: 5%;
    background: var(--akdeniz-turuncu, #E87722);
    opacity: 0.12;
    animation: auth-float 7s ease-in-out infinite 1s;
}

@keyframes auth-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.auth-brand-logo {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.auth-brand-logo img {
    height: 80px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.auth-brand-title {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.auth-brand-subtitle {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    max-width: 320px;
    line-height: 1.6;
}

.auth-brand-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full, 100px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.auth-brand-badge i {
    color: var(--akdeniz-turuncu, #E87722);
}

/* -- Form Panel (Right) ----------------------------------------- */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    overflow-y: auto;
    background: var(--surface-bg, #fff);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 480px;
}

/* Wider wrapper for register page */
.auth-form-wrapper--wide {
    max-width: 640px;
}

/* -- Mobile Brand Header (shown only on mobile) ----------------- */
.auth-mobile-header {
    display: none;
    background: linear-gradient(135deg, var(--akdeniz-mavi-900, #032849) 0%, var(--akdeniz-mavi-700, #0A4D8C) 100%);
    color: #fff;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 0 0 var(--radius-2xl, 24px) var(--radius-2xl, 24px);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-mobile-header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(232, 119, 34, 0.1);
    top: -80px;
    right: -60px;
}

.auth-mobile-header img {
    height: 48px;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
}

.auth-mobile-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 1;
}

.auth-mobile-header p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0.25rem 0 0;
    position: relative;
    z-index: 1;
}

/* -----------------------------------------------------------------
   2. FORM HEADING & DESCRIPTION
   ----------------------------------------------------------------- */

.auth-form-heading {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ana-metin-rengi, #0f172a);
}

.auth-form-desc {
    color: var(--ikincil-metin, #64748b);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* -----------------------------------------------------------------
   3. ALERTS - Error / Info / Success
   ----------------------------------------------------------------- */

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg, 12px);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.auth-alert i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 1rem;
}

.auth-alert--danger {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger-color, #dc2626);
    border-color: rgba(239, 68, 68, 0.15);
}

.auth-alert--info {
    background: rgba(59, 130, 246, 0.08);
    color: var(--info-color, #2563eb);
    border-color: rgba(59, 130, 246, 0.15);
}

.auth-alert--success {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success-color, #059669);
    border-color: rgba(16, 185, 129, 0.15);
}

.auth-alert--warning {
    background: rgba(245, 158, 11, 0.08);
    color: var(--warning-color, #d97706);
    border-color: rgba(245, 158, 11, 0.15);
}

/* -----------------------------------------------------------------
   4. METHOD TOGGLE (Email / Phone pill switch)
   ----------------------------------------------------------------- */

.auth-method-toggle {
    display: flex;
    background: var(--surface-bg-sunken, #f1f5f9);
    padding: 4px;
    border-radius: var(--radius-lg, 12px);
    margin-bottom: 1.75rem;
    gap: 4px;
}

.auth-method-toggle .toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: var(--radius-md, 10px);
    background: transparent;
    color: var(--ikincil-metin, #64748b);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.auth-method-toggle .toggle-btn.active {
    background: var(--surface-bg, #fff);
    color: var(--akdeniz-mavi, #0A4D8C);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.auth-method-toggle .toggle-btn:hover:not(.active) {
    color: var(--akdeniz-mavi, #0A4D8C);
    background: rgba(10, 77, 140, 0.04);
}

/* -----------------------------------------------------------------
   5. FLOATING LABEL FORM GROUP
   ----------------------------------------------------------------- */

.auth-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.auth-field label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ikincil-metin, #475569);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.auth-field label .required {
    color: var(--danger-color, #dc2626);
    margin-left: 2px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap .input-icon {
    position: absolute;
    left: 1rem;
    color: var(--ikincil-metin, #94a3b8);
    font-size: 1rem;
    z-index: 2;
    transition: color 0.2s;
    pointer-events: none;
}

.auth-input-wrap input,
.auth-input-wrap textarea,
.auth-input-wrap select {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.75rem;
    border: 1.5px solid var(--border-rengi, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
    background: var(--surface-bg, #fff);
    color: var(--ana-metin-rengi, #1e293b);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.auth-input-wrap input:focus,
.auth-input-wrap textarea:focus,
.auth-input-wrap select:focus {
    border-color: var(--akdeniz-turuncu, #E87722);
    box-shadow: 0 0 0 4px rgba(232, 119, 34, 0.1);
}

.auth-input-wrap input:focus ~ .input-icon,
.auth-input-wrap textarea:focus ~ .input-icon {
    color: var(--akdeniz-turuncu, #E87722);
}

/* Input without icon */
.auth-input-wrap--no-icon input,
.auth-input-wrap--no-icon textarea,
.auth-input-wrap--no-icon select {
    padding-left: 1rem;
}

/* Password toggle button */
.auth-pw-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--ikincil-metin, #94a3b8);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm, 6px);
    transition: color 0.2s, background 0.2s;
    z-index: 2;
    font-size: 1rem;
}

.auth-pw-toggle:hover {
    color: var(--akdeniz-turuncu, #E87722);
    background: rgba(232, 119, 34, 0.06);
}

/* Validation error */
.auth-field .field-error {
    display: block;
    font-size: 0.8rem;
    color: var(--danger-color, #dc2626);
    margin-top: 0.35rem;
    min-height: 1.1em;
}

/* Validation summary */
.auth-validation-summary {
    color: var(--danger-color, #dc2626);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* -----------------------------------------------------------------
   6. CUSTOM CHECKBOX
   ----------------------------------------------------------------- */

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ikincil-metin, #64748b);
}

.auth-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-rengi, #cbd5e1);
    border-radius: 5px;
    background: var(--surface-bg, #fff);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.auth-check input[type="checkbox"]:checked {
    background: var(--akdeniz-turuncu, #E87722);
    border-color: var(--akdeniz-turuncu, #E87722);
}

.auth-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-check input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--akdeniz-turuncu, #E87722);
    outline-offset: 2px;
}

.auth-check label {
    cursor: pointer;
    user-select: none;
}

/* -----------------------------------------------------------------
   7. SUBMIT BUTTON - Premium gradient
   ----------------------------------------------------------------- */

.auth-submit {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg, 12px);
    background: linear-gradient(135deg, var(--akdeniz-mavi-700, #0A4D8C) 0%, var(--akdeniz-mavi-600, #1468AB) 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.25s, box-shadow 0.25s, background 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.auth-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--akdeniz-turuncu, #E87722), var(--akdeniz-turuncu-600, #C96520));
    opacity: 0;
    transition: opacity 0.35s;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 77, 140, 0.25);
}

.auth-submit:hover::before {
    opacity: 1;
}

.auth-submit span,
.auth-submit i {
    position: relative;
    z-index: 1;
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit--success {
    background: linear-gradient(135deg, #059669, #10B981);
}

.auth-submit--success::before {
    background: linear-gradient(135deg, #047857, #059669);
}

/* -----------------------------------------------------------------
   8. DIVIDER LINE
   ----------------------------------------------------------------- */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.75rem 0;
    color: var(--ikincil-metin, #94a3b8);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-rengi, #e2e8f0);
}

/* -----------------------------------------------------------------
   9. FOOTER LINKS
   ----------------------------------------------------------------- */

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-rengi, #f1f5f9);
}

.auth-footer p {
    color: var(--ikincil-metin, #64748b);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.auth-footer a {
    color: var(--akdeniz-mavi, #0A4D8C);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: var(--akdeniz-turuncu, #E87722);
}

.auth-footer .home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--ikincil-metin, #94a3b8);
    font-weight: 500;
}

.auth-footer .home-link:hover {
    color: var(--akdeniz-turuncu, #E87722);
}

/* -----------------------------------------------------------------
   10. FORGOT PASSWORD / REGISTER LINKS (inline)
   ----------------------------------------------------------------- */

.auth-inline-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.auth-inline-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--akdeniz-mavi, #0A4D8C);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-inline-links a:hover {
    color: var(--akdeniz-turuncu, #E87722);
}

/* -----------------------------------------------------------------
   11. SECTION TITLE (for multi-section forms like Register)
   ----------------------------------------------------------------- */

.auth-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ana-metin-rengi, #1e293b);
    margin: 2rem 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--akdeniz-turuncu, #E87722);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-section-title i {
    color: var(--akdeniz-turuncu, #E87722);
}

/* -----------------------------------------------------------------
   12. USER TYPE CARDS (Register)
   ----------------------------------------------------------------- */

.auth-user-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
}

.auth-user-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    border: 2px solid var(--border-rengi, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
    background: var(--surface-bg, #fff);
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
}

.auth-user-type i {
    font-size: 1.5rem;
    color: var(--ikincil-metin, #64748b);
    transition: color 0.25s;
}

.auth-user-type span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ikincil-metin, #475569);
}

.auth-user-type:hover {
    border-color: var(--akdeniz-mavi-400, #3D9ADE);
    background: var(--akdeniz-mavi-50, #E8F4FD);
}

.auth-user-type.active {
    border-color: var(--akdeniz-turuncu, #E87722);
    background: rgba(232, 119, 34, 0.06);
    box-shadow: 0 4px 12px rgba(232, 119, 34, 0.12);
}

.auth-user-type.active i {
    color: var(--akdeniz-turuncu, #E87722);
}

.auth-user-type.disabled-card {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* -----------------------------------------------------------------
   13. PASSWORD STRENGTH INDICATOR
   ----------------------------------------------------------------- */

.auth-pw-strength {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface-bg-sunken, #f8fafc);
    border-radius: var(--radius-md, 10px);
    border: 1px solid var(--border-rengi, #e2e8f0);
}

.auth-pw-strength .pw-rule {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 2px 0;
    color: var(--ikincil-metin, #94a3b8);
    transition: color 0.2s;
}

.auth-pw-strength .pw-rule i {
    font-size: 0.65rem;
    transition: color 0.2s;
}

.auth-pw-strength .pw-rule.valid {
    color: var(--success-color, #059669);
}

.auth-pw-strength .pw-rule.valid i {
    color: var(--success-color, #059669);
}

/* -----------------------------------------------------------------
   14. CONTRACT SECTION (Register)
   ----------------------------------------------------------------- */

.auth-contracts {
    background: var(--surface-bg-sunken, #f8fafc);
    border-radius: var(--radius-xl, 16px);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--border-rengi, #e2e8f0);
}

.auth-contracts h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ana-metin-rengi, #1e293b);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-contracts h5 i {
    color: var(--akdeniz-mavi, #0A4D8C);
}

.auth-contract-item {
    background: var(--surface-bg, #fff);
    border: 1px solid var(--border-rengi, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
}

.auth-contract-item:hover {
    border-color: var(--akdeniz-mavi-300, #6DB5E8);
}

.auth-contract-item .contract-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.auth-contract-item .contract-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ana-metin-rengi, #1e293b);
}

.auth-contract-item .badge-required {
    display: inline-block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color, #dc2626);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full, 100px);
}

.auth-contract-item .contract-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border: 1.5px solid var(--akdeniz-mavi, #0A4D8C);
    border-radius: var(--radius-md, 8px);
    color: var(--akdeniz-mavi, #0A4D8C);
    font-size: 0.8rem;
    font-weight: 600;
    background: transparent;
    text-decoration: none;
    transition: all 0.2s;
}

.auth-contract-item .contract-view-btn:hover {
    background: var(--akdeniz-mavi, #0A4D8C);
    color: #fff;
}

/* -----------------------------------------------------------------
   15. SUCCESS PAGE SPECIFIC
   ----------------------------------------------------------------- */

.auth-success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: auth-pulse-success 2s ease-in-out infinite;
}

.auth-success-icon i {
    font-size: 2.5rem;
    color: #fff;
}

@keyframes auth-pulse-success {
    0%, 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
    50% { transform: scale(1); box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
}

.auth-success-header {
    background: linear-gradient(135deg, var(--akdeniz-mavi-900, #032849) 0%, var(--akdeniz-mavi-700, #0A4D8C) 100%);
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--radius-2xl, 24px) var(--radius-2xl, 24px) 0 0;
    position: relative;
    overflow: hidden;
}

.auth-success-header::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(232, 119, 34, 0.08);
    top: -100px;
    right: -80px;
}

.auth-success-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.auth-success-header p {
    opacity: 0.85;
    font-size: 0.95rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.auth-success-card {
    background: var(--surface-bg, #fff);
    border-radius: var(--radius-2xl, 24px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
}

.auth-success-body {
    padding: 2.5rem;
}

.auth-info-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface-bg-sunken, #f8fafc);
    border-radius: var(--radius-lg, 12px);
    border: 1px solid var(--border-rengi, #f1f5f9);
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.auth-info-step:hover {
    border-color: var(--akdeniz-mavi-200, #9DCEF2);
}

.auth-info-step .step-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md, 10px);
    background: var(--surface-bg, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--akdeniz-mavi, #0A4D8C);
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.auth-info-step .step-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ana-metin-rengi, #1e293b);
    margin-bottom: 2px;
}

.auth-info-step .step-desc {
    font-size: 0.82rem;
    color: var(--ikincil-metin, #64748b);
}

/* -----------------------------------------------------------------
   16. LOGIN PANEL TRANSITIONS
   ----------------------------------------------------------------- */

.auth-panels-container {
    position: relative;
    transition: height 0.35s ease;
}

.auth-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.auth-panel.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* -----------------------------------------------------------------
   17. ROW / COL HELPERS
   ----------------------------------------------------------------- */

.auth-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.auth-row > .auth-col-half {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 200px;
}

.auth-row > .auth-col-full {
    flex: 0 0 100%;
}

/* -----------------------------------------------------------------
   18. CENTERED AUTH (for simple pages like success, forgot pwd)
   ----------------------------------------------------------------- */

.auth-page--centered {
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.auth-page--centered .auth-form-panel {
    flex: none;
    padding: 0;
    background: transparent;
}

.auth-page--centered .auth-form-wrapper {
    max-width: 480px;
}

.auth-centered-card {
    background: var(--surface-bg, #fff);
    border-radius: var(--radius-2xl, 24px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.auth-centered-header {
    background: linear-gradient(135deg, var(--akdeniz-mavi-900, #032849) 0%, var(--akdeniz-mavi-700, #0A4D8C) 100%);
    color: #fff;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-centered-header::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(232, 119, 34, 0.08);
    top: -80px;
    right: -60px;
}

.auth-centered-header img {
    height: 50px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
}

.auth-centered-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.35rem;
    position: relative;
    z-index: 1;
}

.auth-centered-header p {
    opacity: 0.85;
    font-size: 0.9rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.auth-centered-body {
    padding: 2.5rem;
}

/* -----------------------------------------------------------------
   19. intl-tel-input overrides
   ----------------------------------------------------------------- */

.iti { width: 100%; }
.iti__flag-container { z-index: 10; }

.iti .iti__tel-input {
    border: 1.5px solid var(--border-rengi, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    background: var(--surface-bg, #fff);
    color: var(--ana-metin-rengi, #1e293b);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.iti .iti__tel-input:focus {
    border-color: var(--akdeniz-turuncu, #E87722);
    box-shadow: 0 0 0 4px rgba(232, 119, 34, 0.1);
    outline: none;
}

/* -----------------------------------------------------------------
   20. DARK THEME OVERRIDES
   ----------------------------------------------------------------- */

[data-theme="dark"] .auth-brand-panel {
    background: linear-gradient(160deg, #010e1a 0%, #052038 50%, #0a3a6a 100%);
}

[data-theme="dark"] .auth-form-panel {
    background: var(--surface-bg);
}

[data-theme="dark"] .auth-method-toggle {
    background: var(--surface-bg-sunken);
}

[data-theme="dark"] .auth-method-toggle .toggle-btn.active {
    background: var(--surface-bg-raised, #1e293b);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .auth-input-wrap input,
[data-theme="dark"] .auth-input-wrap textarea,
[data-theme="dark"] .auth-input-wrap select {
    background: var(--surface-bg-sunken);
    border-color: var(--border-rengi);
    color: var(--ana-metin-rengi);
}

[data-theme="dark"] .auth-check input[type="checkbox"] {
    background: var(--surface-bg-sunken);
    border-color: var(--border-rengi);
}

[data-theme="dark"] .auth-user-type {
    background: var(--surface-bg-sunken);
    border-color: var(--border-rengi);
}

[data-theme="dark"] .auth-user-type:hover {
    background: rgba(10, 77, 140, 0.15);
}

[data-theme="dark"] .auth-user-type.active {
    background: rgba(232, 119, 34, 0.1);
    border-color: var(--akdeniz-turuncu, #E87722);
}

[data-theme="dark"] .auth-contracts {
    background: var(--surface-bg-sunken);
}

[data-theme="dark"] .auth-contract-item {
    background: var(--surface-bg);
}

[data-theme="dark"] .auth-pw-strength {
    background: var(--surface-bg-sunken);
}

[data-theme="dark"] .auth-centered-card,
[data-theme="dark"] .auth-success-card {
    background: var(--surface-bg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .auth-info-step {
    background: var(--surface-bg-sunken);
    border-color: var(--border-rengi);
}

[data-theme="dark"] .auth-info-step .step-icon {
    background: var(--surface-bg);
}

/* Checkbox checkmark - ensure white tick visible on orange bg in dark mode */
[data-theme="dark"] .auth-check input[type="checkbox"]:checked::after {
    border-color: #fff;
}

/* Alerts - boost alpha so colored backgrounds are visible on dark surfaces */
[data-theme="dark"] .auth-alert--danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.25);
}

[data-theme="dark"] .auth-alert--info {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .auth-alert--success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .auth-alert--warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.25);
}

/* Method toggle hover - ensure sufficient contrast */
[data-theme="dark"] .auth-method-toggle .toggle-btn:hover:not(.active) {
    background: rgba(10, 77, 140, 0.12);
}

/* Password toggle - dark mode hover */
[data-theme="dark"] .auth-pw-toggle:hover {
    background: rgba(232, 119, 34, 0.12);
}

/* Badge-required in contracts */
[data-theme="dark"] .auth-contract-item .badge-required {
    background: rgba(239, 68, 68, 0.18);
}

/* Contract view button - dark mode */
[data-theme="dark"] .auth-contract-item .contract-view-btn {
    border-color: var(--akdeniz-mavi-400, #3D9ADE);
    color: var(--akdeniz-mavi-400, #3D9ADE);
}

[data-theme="dark"] .auth-contract-item .contract-view-btn:hover {
    background: var(--akdeniz-mavi-400, #3D9ADE);
    color: #fff;
}

/* Submit button hover shadow - more visible in dark */
[data-theme="dark"] .auth-submit:hover {
    box-shadow: 0 8px 25px rgba(10, 77, 140, 0.4);
}

/* intl-tel-input dark mode */
[data-theme="dark"] .iti .iti__tel-input {
    background: var(--surface-bg-sunken);
    border-color: var(--border-rengi);
    color: var(--ana-metin-rengi);
}

/* Mobile header - darken gradient for dark mode */
[data-theme="dark"] .auth-mobile-header {
    background: linear-gradient(135deg, #010e1a 0%, #052038 100%);
}

/* Centered auth pages - darker header in dark mode */
[data-theme="dark"] .auth-centered-header {
    background: linear-gradient(135deg, #010e1a 0%, #052038 100%);
}

[data-theme="dark"] .auth-success-header {
    background: linear-gradient(135deg, #010e1a 0%, #052038 100%);
}

/* Profile page dark overrides */
[data-theme="dark"] .profil-info-item input,
[data-theme="dark"] .profil-info-item textarea,
[data-theme="dark"] .profil-info-item select {
    background: var(--surface-bg-sunken);
    border-color: var(--border-rengi);
    color: var(--ana-metin-rengi);
}

[data-theme="dark"] .profil-info-item input[readonly],
[data-theme="dark"] .profil-info-item input:disabled {
    background: #162032;
    color: #64748B;
}

[data-theme="dark"] .profil-search-box {
    background: var(--surface-bg-sunken);
    border-color: var(--border-rengi);
}

[data-theme="dark"] .profil-search-result {
    background: var(--surface-bg-sunken);
    border-color: var(--border-rengi);
}

[data-theme="dark"] .profil-ref-item {
    background: var(--surface-bg-sunken);
    border-color: var(--border-rengi);
}

[data-theme="dark"] .profil-badge {
    background: rgba(232, 119, 34, 0.15);
}

/* -----------------------------------------------------------------
   21. RESPONSIVE
   ----------------------------------------------------------------- */

@media (max-width: 992px) {
    .auth-page {
        flex-direction: column;
        min-height: auto;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-mobile-header {
        display: block;
    }

    .auth-form-panel {
        padding: 0 1.25rem 2rem;
        align-items: flex-start;
    }

    .auth-form-wrapper,
    .auth-form-wrapper--wide {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .auth-user-types {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .auth-user-type {
        flex-direction: row;
        padding: 1rem;
        gap: 0.75rem;
    }

    .auth-user-type i {
        font-size: 1.25rem;
    }

    .auth-row > .auth-col-half {
        flex: 0 0 100%;
    }

    .auth-inline-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* -----------------------------------------------------------------
   22. PROFIL PAGE SPECIFIC
   ----------------------------------------------------------------- */

.profil-page {
    padding: 2rem 0;
    background: var(--body-bg, #f0f4f8);
    min-height: 80vh;
}

.profil-main-card {
    border: none;
    border-radius: var(--radius-xl, 16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    background: var(--surface-bg, #fff);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Sidebar */
.profil-sidebar {
    background: var(--surface-bg, #fff);
    padding: 2rem;
    border-right: 1px solid var(--border-rengi, #edf2f9);
    min-height: 100%;
}

.profil-header-card {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-rengi, #edf2f9);
    margin-bottom: 2rem;
}

.profil-photo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profil-photo-wrapper img,
.profil-photo-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--akdeniz-turuncu, #E87722);
    box-shadow: 0 6px 20px rgba(232, 119, 34, 0.15);
}

.profil-photo-placeholder {
    background: var(--surface-bg-sunken, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.profil-photo-placeholder i {
    font-size: 2.5rem;
    color: var(--ikincil-metin, #94a3b8);
}

.profil-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ana-metin-rengi, #1e293b);
    margin-bottom: 0.25rem;
}

.profil-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(232, 119, 34, 0.1);
    color: var(--akdeniz-turuncu, #E87722);
    padding: 5px 14px;
    border-radius: var(--radius-full, 100px);
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* Nav pills */
.profil-nav .nav-link {
    color: var(--ikincil-metin, #64748b);
    padding: 12px 18px;
    margin-bottom: 6px;
    border-radius: var(--radius-md, 10px);
    font-weight: 500;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.profil-nav .nav-link i {
    width: 24px;
    margin-right: 10px;
    font-size: 1rem;
    text-align: center;
}

.profil-nav .nav-link:hover {
    background: var(--surface-bg-sunken, #f1f5f9);
    color: var(--akdeniz-mavi, #0A4D8C);
}

.profil-nav .nav-link.active {
    background: linear-gradient(135deg, var(--akdeniz-mavi-700, #0A4D8C), var(--akdeniz-mavi-600, #1468AB));
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(10, 77, 140, 0.25);
}

/* Tab content */
.profil-tab-content {
    padding: 2rem;
}

.profil-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ana-metin-rengi, #1e293b);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--akdeniz-turuncu, #E87722);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.profil-section-title i {
    color: var(--akdeniz-turuncu, #E87722);
}

.profil-info-item {
    margin-bottom: 1.5rem;
}

.profil-info-item label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ikincil-metin, #475569);
    margin-bottom: 0.5rem;
    display: block;
}

.profil-info-item input,
.profil-info-item textarea,
.profil-info-item select {
    width: 100%;
    border: 1.5px solid var(--border-rengi, #e2e8f0);
    border-radius: var(--radius-md, 10px);
    padding: 0.65rem 1rem;
    background: var(--surface-bg, #fff);
    color: var(--ana-metin-rengi, #1e293b);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.profil-info-item input:focus,
.profil-info-item textarea:focus,
.profil-info-item select:focus {
    border-color: var(--akdeniz-turuncu, #E87722);
    box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.1);
}

.profil-info-item input[readonly],
.profil-info-item input:disabled {
    background: var(--surface-bg-sunken, #f1f5f9);
    cursor: default;
    opacity: 0.8;
}

.profil-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    border-radius: var(--radius-md, 10px);
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--akdeniz-mavi-700, #0A4D8C), var(--akdeniz-mavi-600, #1468AB));
    border: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    font-family: inherit;
}

.profil-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(10, 77, 140, 0.25);
}

.profil-instructor-card {
    background: var(--surface-bg, #fff);
    border: 1px solid var(--border-rengi, #edf2f9);
    border-radius: var(--radius-lg, 12px);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.profil-instructor-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.profil-search-box {
    background: var(--surface-bg-sunken, #f8fafc);
    border-radius: var(--radius-md, 10px);
    padding: 1.25rem;
    border: 1px solid var(--border-rengi, #e2e8f0);
}

.profil-search-result {
    background: var(--surface-bg, #fff);
    border: 1px solid var(--border-rengi, #e2e8f0);
    border-radius: var(--radius-md, 10px);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.profil-ref-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--surface-bg, #fff);
    border: 1px solid var(--border-rengi, #edf2f9);
    border-radius: var(--radius-md, 10px);
    margin-bottom: 10px;
}

/* Dark theme profile */
[data-theme="dark"] .profil-main-card {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .profil-sidebar {
    border-right-color: var(--border-rengi);
}

[data-theme="dark"] .profil-instructor-card {
    background: var(--surface-bg-sunken);
}

/* Responsive profile */
@media (max-width: 992px) {
    .profil-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-rengi, #edf2f9);
    }

    .profil-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 0.5rem;
    }

    .profil-nav .nav-link {
        white-space: nowrap;
        font-size: 0.82rem;
        padding: 10px 14px;
    }
}
