:root {
    --auth-bg: #f8fafc;
    --auth-text: #1e293b;
    --auth-primary: #2563eb;
    --auth-primary-hover: #1d4ed8;
    --auth-border: #e2e8f0;
}

body {
    background: radial-gradient(circle at 15% 15%, #eaf1fb 0%, var(--auth-bg) 45%), var(--auth-bg) !important;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-container {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.15), 0 10px 20px -5px rgba(15, 23, 42, 0.06);
    display: flex;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid var(--auth-border);
}

/* Sol Panel - Marka Alanı */
.auth-info-side {
    flex: 1;
    background: linear-gradient(155deg, #0b1626 0%, #16243b 55%, #1a5fa8 130%);
    padding: 60px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-info-side::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56,189,248,0.25) 0%, rgba(56,189,248,0) 70%);
    top: -80px;
    right: -80px;
}

.auth-info-content h2 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.auth-info-content p {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.6;
}

.auth-features {
    margin-top: 40px;
    list-style: none;
    padding: 0;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #cbd5e1;
}

.auth-features li i {
    color: #38bdf8;
    font-size: 18px;
}

.auth-info-content, .auth-features {
    position: relative;
    z-index: 1;
}

/* Sağ Panel - Form Alanı */
.auth-form-side {
    flex: 1;
    padding: 60px;
    background: #fff;
    display: flex;
    justify-content: center;
}

.auth-form-inner {
    width: 100%;
    max-width: 360px;
}

.auth-form-inner:has(#registerSection[style*="block"]) {
    max-width: 420px;
}

.auth-brand-mobile {
    display: none;
    text-align: center;
    margin-bottom: 28px;
}

.auth-brand-mobile img {
    max-height: 44px;
}

.auth-tabs {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--auth-border);
}

.auth-tab-btn {
    background: none;
    border: none;
    padding-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: color .2s;
}

.auth-tab-btn.active {
    color: var(--auth-primary);
}

.auth-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--auth-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 8px;
}

.input-group-icon {
    position: relative;
}

.input-group-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    transition: color .2s;
}

.input-group-icon .input-control {
    padding-left: 44px;
}

.input-group-icon .input-control:focus + i,
.input-group-icon:focus-within i {
    color: var(--auth-primary);
}

.input-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--auth-border);
    border-radius: 12px;
    font-size: 15px;
    transition: all .2s;
    background: #f8fafc;
}

.input-control:focus {
    outline: none;
    border-color: var(--auth-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-hover));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
    margin-top: 10px;
    box-shadow: 0 10px 20px -6px rgba(37, 99, 235, 0.45);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px -6px rgba(37, 99, 235, 0.5);
}

.btn-submit:active {
    transform: translateY(0);
}

.auth-footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 14px;
}

.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .auth-container { flex-direction: column; border-radius: 20px; }
    .auth-info-side { display: none; }
    .auth-form-side { padding: 40px 24px; }
    .auth-brand-mobile { display: block; }
}

/* Forgot-password modal styles */
.fp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fpFade .2s ease;
}

@keyframes fpFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fpPop {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.fp-modal {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 440px;
    border-radius: 22px;
    padding: 38px 34px 30px;
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.35);
    text-align: center;
    animation: fpPop .25s ease;
}

.fp-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #1a5fa8);
    color: #fff;
    font-size: 28px;
    box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.6);
}

.fp-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}

.fp-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.fp-title {
    font-size: 21px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.fp-sub {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.55;
}

.fp-group {
    text-align: left;
    margin-bottom: 22px;
}

.fp-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.fp-input-wrap {
    position: relative;
}

.fp-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}

.fp-input {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #1e293b;
    transition: border-color .15s, box-shadow .15s;
}

.fp-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.fp-actions {
    display: flex;
    gap: 10px;
}

.fp-btn-cancel {
    flex: 0 0 auto;
    padding: 13px 22px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.fp-btn-cancel:hover {
    background: #f8fafc;
}

.fp-btn-send {
    flex: 1;
    padding: 13px;
    border-radius: 12px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s, transform .1s;
}

.fp-btn-send:hover {
    background: #1d4ed8;
}

.fp-btn-send:active {
    transform: translateY(1px);
}
