/* =========================================
   İŞİN OLURU - AUTHENTICATION & ONBOARDING CSS
   Split-screen Layout & Corporate Design
   ========================================= */

body.auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-secondary);
    display: flex;
}

.auth-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* LEFT SIDE - INFO PANEL - VIBRANT BRAND THEME */
.auth-info-panel {
    flex: 1.3;
    background: linear-gradient(135deg, #1b0a33 0%, #3d143c 50%, #682619 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem 5rem;
    color: white;
    overflow: hidden;
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 40px) scale(1.2); }
    66% { transform: translate(20px, -20px) scale(0.8); }
    100% { transform: translate(0, 0) scale(1); }
}

.auth-info-panel::before {
    content: '';
    position: absolute;
    top: -10%; left: -10%;
    width: 65%; height: 65%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(80px);
    animation: floatOrb1 15s ease-in-out infinite;
}

.auth-info-panel::after {
    content: '';
    position: absolute;
    bottom: -15%; right: -15%;
    width: 70%; height: 70%;
    background: radial-gradient(circle, rgba(189, 90, 224, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(90px);
    animation: floatOrb2 18s ease-in-out infinite reverse;
}

.auth-info-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: auto 0;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    margin-bottom: 3rem;
    transition: transform 0.3s ease;
}

.auth-brand:hover {
    transform: translateY(-2px);
}

.auth-brand img {
    height: 60px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

.auth-value-props h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.auth-value-props p {
    font-size: 1.25rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 3.5rem;
    font-weight: 400;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 1.75rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.auth-feature-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(12px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.auth-feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.4);
    color: white;
}

.auth-feature-text {
    flex: 1;
}

.auth-feature-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: 0.2px;
    color: white;
}

.auth-feature-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0;
}

.auth-info-footer {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* RIGHT SIDE - FORM PANEL */
.auth-form-panel {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

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

.auth-form-header h2 {
    font-size: 1.75rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.auth-form-header p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* TABS */
.auth-tabs {
    display: flex;
    background: var(--gray-100);
    padding: 0.35rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-500);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* FORMS */
.auth-form {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.auth-form.active {
    display: block;
}

.input-group {
    position: relative;
    margin-bottom: 1.2rem;
    text-align: left;
}

.input-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--gray-800);
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.input-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 151, 0, 0.1);
}

.input-group-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.2s;
}

.input-group-icon:hover {
    color: var(--gray-600);
}

.forgot-link {
    text-align: right;
    margin: -0.5rem 0 1.5rem;
}

.forgot-link a {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.forgot-link a:hover {
    color: var(--primary-dark);
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.85rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-200);
}

.divider span {
    padding: 0 1rem;
}

.btn-google {
    width: 100%;
    padding: 0.8rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.btn-google:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.checkbox-item input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: var(--primary);
}

.back-link {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.back-link a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 500;
}

.back-link a:hover {
    color: var(--gray-800);
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .auth-wrapper {
        flex-direction: column;
    }
    .auth-info-panel {
        display: none; /* Hide on mobile to save space, or make it a small header */
    }
    .auth-form-panel {
        padding: 4rem 1rem 2rem;
        justify-content: flex-start;
    }
    .back-link {
        top: 1rem;
        right: 1rem;
    }
    body.auth-page {
        overflow-y: auto;
    }
}

/* BUTTONS & ALERTS (Missing from global scope) */
.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #FF5500);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 151, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 151, 0, 0.3);
}

.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-danger {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.alert-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}