/* Extracted from login.php. */

/* === LOGIN — XenForo Design 2026 === */
        /* ═══════════════════════════════════════════════════════════
   MODERN LOGIN & REGISTER PAGE - MEMUR KAHVESİ
   Split layout with gradient background and interactive forms
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   RESET & VARIABLES
   ═══════════════════════════════════════════════════════════ */
/* Body Layout */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--stone-200) 100%);
    font-family: var(--font-sans);
    color: var(--text-primary);
    position: relative;
    padding: 2rem;
    box-sizing: border-box;
}

/* Animated Background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════════════════════════ */
.container {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.35);
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 1;
    animation: containerSlideIn 0.6s ease-out;
}

@keyframes containerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ═══════════════════════════════════════════════════════════
   LEFT SIDE (Info Panel)
   ═══════════════════════════════════════════════════════════ */
.left {
    background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
    color: white;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: patternMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.left h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
    letter-spacing: -0.02em;
}

.left p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.left ul {
    margin-top: 3rem;
    line-height: 2.5;
    list-style: none;
    position: relative;
    z-index: 1;
}

.left li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.75rem 0;
    transition: all var(--transition-base);
}

.left li::before {
    content: '✅';
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.left li:hover {
    transform: translateX(8px);
}

/* ═══════════════════════════════════════════════════════════
   RIGHT SIDE (Forms)
   ═══════════════════════════════════════════════════════════ */
.right {
    padding: 3rem 2.5rem;
    background: var(--bg-surface);
}

/* Mobile Header */
.mobile-header {
    text-align: center;
    color: var(--navy-700);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════════════════ */
.tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-base);
    flex: 1;
    position: relative;
}

.tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.tab.active {
    color: var(--navy-700);
    font-weight: 800;
    background: var(--stone-50);
    border-bottom-color: var(--navy-700);
}

.tab.active::after {
    transform: scaleX(1);
}

.tab:hover {
    color: var(--navy-700);
    background: var(--stone-50);
}

.tab-content {
    display: none;
    animation: fadeInContent 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h2 {
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════ */
.form-group {
    margin-bottom: 1.5rem;
}

.legal-acceptance-box {
    margin: 1.25rem 0 1.5rem;
    padding: 1rem 1rem .9rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.04), rgba(255,255,255,0.96));
}

.legal-acceptance-box strong {
    display: block;
    margin-bottom: .55rem;
    color: var(--navy-900);
    font-size: .98rem;
}

.legal-acceptance-box p {
    margin: 0 0 .9rem;
    color: var(--text-secondary);
    font-size: .92rem;
    line-height: 1.55;
}

.legal-summary-list {
    margin: 0 0 .85rem 1.05rem;
    padding: 0;
    color: var(--text-secondary);
    font-size: .9rem;
    line-height: 1.55;
}

.legal-check {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-top: .65rem;
    color: var(--text-primary);
    font-size: .92rem;
    line-height: 1.45;
    cursor: pointer;
}

.legal-check input {
    margin-top: .2rem;
    flex: 0 0 auto;
}

.legal-check a {
    color: var(--navy-700);
    font-weight: 700;
    text-decoration: underline;
}

label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

input,
select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-base);
    font-family: inherit;
    background: var(--bg-surface);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--navy-700);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1);
}

input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
    width: 100%;
    padding: 1.125rem;
    background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--navy-700);
    font-weight: 700;
    margin-top: 1rem;
    padding: 0.875rem;
    font-size: 0.95rem;
    border: 2px solid var(--navy-700);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--navy-700);
    color: white;
}

/* ═══════════════════════════════════════════════════════════
   MESSAGES
   ═══════════════════════════════════════════════════════════ */
.message {
    padding: 1.125rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: messageSlideIn 0.4s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-success {
    background: var(--emerald-50);
    color: var(--emerald-700);
    border-left: 4px solid var(--success);
}

.message-error {
    background: var(--red-50);
    color: var(--red-700);
    border-left: 4px solid var(--danger);
}

/* ═══════════════════════════════════════════════════════════
   FORGOT PASSWORD LINK
   ═══════════════════════════════════════════════════════════ */
.forgot-password-link {
    text-align: center;
    margin-top: 1.5rem;
}

.forgot-password-link a {
    color: var(--navy-700);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.forgot-password-link a:hover {
    color: var(--navy-800);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.35);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 2.5rem 2.5rem 1.5rem;
    text-align: center;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.modal-title {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0 2rem;
}

.modal-body {
    padding: 0 2.5rem 1.5rem;
}

/* Method Selector */
.method-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.method-btn {
    padding: 1.5rem 1rem;
    border: 3px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.method-btn:hover {
    border-color: var(--navy-700);
    background: linear-gradient(135deg, var(--stone-50) 0%, var(--stone-100) 100%);
    transform: translateY(-2px);
}

.method-btn.active {
    border-color: var(--navy-700);
    background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
    color: white;
    transform: scale(1.05);
}

.method-btn .icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.method-btn .label {
    font-weight: 700;
    font-size: 0.95rem;
}

.modal-footer {
    padding: 2rem 2.5rem;
    background: var(--stone-50);
    display: flex;
    gap: 1rem;
    border-top: 1px solid var(--border-light);
}

.btn-modal {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-cancel {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-cancel:hover {
    background: var(--border-light);
}

.btn-confirm {
    background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
    color: white;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.4);
}

.code-input-group {
    display: none;
    margin-top: 1.5rem;
    animation: fadeInContent 0.4s ease;
}

.code-input-group.active {
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    
    .left {
        display: none;
    }
    
    .right {
        padding: 2rem 1.5rem;
    }
    
    .mobile-header {
        display: block !important;
        font-size: 1.75rem;
    }
    
    .tabs {
        justify-content: space-around;
    }
    
    .tab {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .tab-content h2 {
        font-size: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    input,
    select {
        padding: 0.875rem;
    }
    
    .btn {
        padding: 1rem;
    }
    
    .modal-container {
        width: 95%;
        max-width: none;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .modal-title {
        font-size: 1.35rem;
    }
    
    .modal-body {
        padding: 0 1.5rem 1rem;
    }

    .modal-subtitle {
        padding: 0;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .modal-footer {
        flex-direction: column;
        padding: 1.25rem 1.5rem;
    }
    
    .method-selector {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .method-btn {
        padding: 1rem 0.75rem;
    }

    .method-btn .icon {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .method-btn .label {
        font-size: 0.85rem;
    }

    .modal-body .form-group label {
        font-size: 0.875rem;
    }

    .modal-body .form-group input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
}

@media (max-width: 480px) {
    .right {
        padding: 1.75rem 1.25rem;
    }
    
    .tab-content h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    label {
        font-size: 0.875rem;
    }
    
    input,
    select {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.9rem;
        font-size: 1rem;
    }
    
    .modal-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }

    .modal-body {
        padding: 0 1.25rem 0.75rem;
    }
    
    .modal-footer {
        padding: 1rem 1.25rem;
    }
    
    .modal-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .method-btn .icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .method-btn .label {
        font-size: 0.8rem;
    }

    .method-btn {
        padding: 0.75rem 0.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS & TRANSITIONS
   ═══════════════════════════════════════════════════════════ */

/* Focus Glow Effect */
@keyframes focusGlow {
    0%, 100% { box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1); }
    50% { box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.15); }
}

input:focus,
select:focus {
    animation: focusGlow 2s ease-in-out infinite;
}

/* Button Pulse on Hover */
@keyframes buttonPulse {
    0%, 100% { transform: translateY(-2px) scale(1); }
    50% { transform: translateY(-2px) scale(1.02); }
}

.btn:hover:not(:disabled) {
    animation: buttonPulse 1s ease-in-out infinite;
}

/* Loading Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn:disabled::before {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border: 1px solid var(--glass-border);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.login-brand-link { color: inherit; text-decoration: none; }
.login-feature-list { margin-top: 2rem; line-height: 2; }
.login-form-title { margin-bottom: 1.5rem; }
#sms-group[hidden], .code-input-group[hidden] { display: none !important; }

/* 2026 auth polish: align login/register screens with the public theme */
body {
    background:
        radial-gradient(circle at 15% 10%, rgba(239, 68, 68, .10), transparent 28%),
        radial-gradient(circle at 85% 85%, rgba(15, 23, 42, .10), transparent 32%),
        #f7f4ef;
    color: #0f172a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    opacity: .28;
}

.container {
    max-width: 1080px;
    min-height: 650px;
    border-radius: 18px;
    border: 1px solid #e4dfd7;
    background: #fff;
    box-shadow: 0 26px 70px rgba(15, 23, 42, .16);
    overflow: hidden;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1fr);
}

.left {
    background: linear-gradient(135deg, #111827 0%, #27252a 48%, #8f2525 100%);
    padding: clamp(2.25rem, 4vw, 4rem);
}

.left::before {
    opacity: .12;
}

.left h1 {
    font-size: clamp(2rem, 3vw, 2.65rem);
    letter-spacing: 0;
}

.left p,
.left li {
    color: rgba(255, 255, 255, .88);
}

.right {
    background: #ffffff;
    padding: clamp(2rem, 4vw, 3.25rem);
}

.tabs {
    align-items: center;
    gap: .35rem;
    padding: .3rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
}

.tab {
    border-radius: 10px;
    color: #64748b;
    border: 0;
}

.tab::after {
    display: none;
}

.tab.active {
    color: #fff;
    background: linear-gradient(135deg, #ef2a2a 0%, #8f1d1d 100%);
    border-bottom-color: transparent;
    box-shadow: 0 10px 22px rgba(143, 29, 29, .18);
}

.tab:hover {
    color: #0f172a;
    background: #fff;
}

.tab.active:hover {
    color: #fff;
    background: linear-gradient(135deg, #ef2a2a 0%, #8f1d1d 100%);
}

.tab-content h2 {
    color: #0f172a;
    letter-spacing: 0;
}

.form-group label {
    color: #334155;
}

.form-group input,
.form-group select {
    border-color: #d8d0c7;
    background: #fff;
    color: #0f172a;
    border-radius: 10px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, .12);
}

.btn,
.btn-confirm {
    border-radius: 10px;
    background: linear-gradient(135deg, #ef2a2a 0%, #8f1d1d 100%);
    box-shadow: 0 14px 28px rgba(143, 29, 29, .20);
}

.btn:hover,
.btn-confirm:hover {
    box-shadow: 0 18px 34px rgba(143, 29, 29, .24);
}

.btn:hover:not(:disabled),
.btn-modal:hover:not(:disabled) {
    animation: none;
}

.btn-secondary,
.btn-cancel {
    color: #7f1d1d;
    background: #fff;
    border-color: #f0d4d4;
    box-shadow: none;
}

.btn-secondary:hover,
.btn-cancel:hover {
    color: #fff;
    background: #8f1d1d;
}

@media (max-width: 768px) {
    .container {
        max-width: 480px;
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .right {
        padding: 2rem 1.35rem;
    }
}
