/* ========================================
   CSS VARIABLES (ROOT)
   ======================================== */
:root {
    /* Primary Colors */
    --primary-color: #0097b2;
    --primary-dark: #007a91;
    --primary-light: #00b4d8;
    --primary-color-rgb: 0, 151, 178;
    --primary-gradient: linear-gradient(135deg, #0097b2 0%, #00b4d8 100%);

    /* Secondary Colors */
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;

    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-sidebar: #ffffff;
    --text-primary: #343a40;
    --text-secondary: #6c757d;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.15);

    /* Neutral Colors */
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --black: #000000;

    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Border Radius */
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ========================================
   BASE STYLES
   ======================================== */
body {
    background: #f5f7fa;
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: #212529;
    margin: 0;
    padding: 0;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */
.form-container {
    max-width: 860px;
    margin: 40px auto;
    background: #fff;
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.login-container {
    background: var(--white);
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.brand-header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-header img {
    max-width: 120px;
    margin-bottom: 12px;
}

.brand-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b3b3b;
    margin: 0;
}

.brand-header p {
    color: #6c757d;
    margin: 8px 0 0 0;
}

/* ========================================
   STEP INDICATOR
   ======================================== */
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step.active,
.step.completed {
    border-color: #3b3b3b;
    color: #3b3b3b;
    background: #e7f1ff;
}

.step.completed {
    background: #3b3b3b;
    color: #fff;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h5.section-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #3b3b3b;
    color: #212529;
}

.login-subtitle {
    font-size: 1em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   CARDS
   ======================================== */
.option-card {
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
    text-align: center;
    font-weight: 500;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.25s ease;
}

.option-card:hover {
    border-color: #3b3b3b;
    background: #f0f8ff;
}

.option-card.active,
.option-card.selected {
    border-color: #3b3b3b;
    background: #e7f1ff;
    font-weight: 600;
    color: #3b3b3b;
}

.card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 18px;
    font-weight: 600;
}

.card-body {
    padding: 18px;
}

.summary-card {
    margin-top: 25px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.summary-card .card-header {
    background: #3b3b3b;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 18px;
    border-radius: 8px 8px 0 0;
}

.summary-card .card-body {
    background: #f8f9fa;
    padding: 18px;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.form-group {
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.form-label,
.label-control {
    font-size: 0.8rem;
    margin-bottom: 3px;
    color: #555;
    display: block;
    font-weight: 500;
}

.form-control,
.form-select,
.input-control,
.select-control,
textarea.input-control {
    border-radius: 6px;
    border: 1.2px solid #ced4da;
    padding: 8px 10px;
    font-size: 16px;
    width: 100%;
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus,
.input-control:focus,
.select-control:focus {
    border-color: #3b3b3b;
    box-shadow: 0 0 0 3px rgba(59, 59, 59, 0.1);
    outline: none;
}

/* iOS Safari zoom engellemek için minimum 16px */
@media (max-width: 768px) {
    .form-control,
    .form-select,
    .input-control,
    .select-control {
        font-size: 16px !important;
    }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn,
.button-control {
    border-radius: 6px;
    font-weight: 600;
    padding: 10px 22px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-success,
.button-control-success {
    background: #198754;
    color: white;
    border: none;
}

.btn-success:hover,
.button-control-success:hover {
    background: #157347;
    color: white;
}

.btn-primary,
.button-control-primary {
    background: #3b3b3b;
    color: white;
}

.btn-primary:hover,
.button-control-primary:hover {
    background: #2a2a2a;
    color: white;
}

.button-control-outline {
    background: white;
    color: #3b3b3b;
    border: 1.5px solid #3b3b3b;
}

.button-control-outline:hover {
    background: #f8f9fa;
    color: #3b3b3b;
}

/* ========================================
   ALERTS & NOTIFICATIONS
   ======================================== */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.custom-alert.show {
    transform: translateX(0);
}

.custom-alert.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.custom-alert.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.custom-alert.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.custom-alert .alert-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.custom-alert .alert-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.custom-alert .alert-close:hover {
    opacity: 1;
}

/* ========================================
   LOGIN SPECIFIC STYLES
   ======================================== */
.forgot-password {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
}

.forgot-password a:hover {
    text-decoration: underline;
}

.password-toggle {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: var(--font-size-sm);
    padding: 5px;
}

.password-toggle-btn:hover {
    color: var(--primary-color);
}

.security-info {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md);
    background: var(--light-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    color: var(--secondary-color);
    text-align: center;
}

.security-info .security-item {
    display: inline-block;
    margin: 0 var(--spacing-sm);
    color: var(--success-color);
}

.logo {
    max-width: 200px;
    max-height: 100px;
    margin-bottom: var(--spacing-lg);
    object-fit: contain;
}

/* ========================================
   FORM STATES
   ======================================== */
.form-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.form-disabled-message {
    border-left: 4px solid #dc3545;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.form-section {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

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

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

/* ========================================
   PROGRESS BAR
   ======================================== */
.progress {
    background-color: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    height: 10px;
}

.progress-bar {
    background-color: #3b3b3b;
    transition: width 0.3s ease;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .form-container {
        margin: 20px;
        padding: 25px 20px;
    }

    .brand-header h1 {
        font-size: 1.25rem;
    }

    .step {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}