/* Mobile Auth Pages (Login, Register) Styles - Profesyonel Mobil Tasarım */

@media (max-width: 768px) {
    /* Auth Özel Renkler */
    :root {
        --auth-primary: #6366f1;
        --auth-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    /* Navbar - Professional */
    .navbar {
        background: var(--mobile-bg) !important;
        border-bottom: 1px solid var(--mobile-border) !important;
        padding: 0.375rem 0 !important;
        min-height: 50px;
    }
    
    .navbar .container {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
        font-weight: 700;
        color: var(--mobile-text) !important;
    }
    
    /* Light Theme - Navbar */
    :root:not([data-theme="dark"]) .navbar {
        background: #ffffff !important;
        border-bottom-color: #e2e8f0 !important;
    }
    
    :root:not([data-theme="dark"]) .navbar-brand {
        color: #6366f1 !important;
    }
    
    /* Dark Theme - Navbar */
    [data-theme="dark"] .navbar {
        background: #0b1220 !important;
        border-bottom-color: #1f2937 !important;
    }
    
    [data-theme="dark"] .navbar-brand {
        color: #818cf8 !important;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        border: 1px solid var(--mobile-border) !important;
        border-radius: 8px;
    }
    
    /* Auth Wrap - Compact */
    .auth-wrap {
        background: var(--mobile-bg) !important;
        min-height: 100vh;
        padding: 0;
        overflow-x: hidden;
        padding-top: 50px; /* Navbar height */
    }
    
    .auth-wrap .shape {
        display: none;
    }
    
    /* Auth Container - Minimalist */
    .auth-container {
        padding: 0.75rem;
        max-width: 100%;
        padding-top: 0.5rem;
    }
    
    /* Brand - Compact */
    .brand {
        font-size: 0.9375rem;
        font-weight: 700;
    }
    
    .brand i {
        font-size: 1rem;
    }
    
    /* Auth Card - Professional */
    .auth-card {
        flex-direction: column;
        border-radius: var(--mobile-radius);
        background: var(--mobile-card-bg) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid var(--mobile-border) !important;
        margin-bottom: 1rem;
    }
    
    /* Light Theme - Auth Card */
    :root:not([data-theme="dark"]) .auth-card {
        background: #ffffff !important;
        border-color: #e2e8f0 !important;
    }
    
    /* Dark Theme - Auth Card */
    [data-theme="dark"] .auth-card {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    
    .auth-card .left {
        width: 100%;
        padding: 1.25rem;
    }
    
    .auth-card .right {
        display: none !important; /* Mobilde sağ panel gizli */
    }
    
    /* Auth Title - Professional */
    .auth-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--mobile-text);
        margin-top: 0;
        margin-bottom: 0.375rem;
        line-height: 1.3;
    }
    
    /* Light Theme - Auth Title */
    :root:not([data-theme="dark"]) .auth-title {
        color: #1e293b !important;
    }
    
    /* Dark Theme - Auth Title */
    [data-theme="dark"] .auth-title {
        color: #f1f5f9 !important;
    }
    
    .auth-sub {
        font-size: 0.875rem;
        color: var(--mobile-text-muted);
        margin-top: 0;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }
    
    /* Light Theme - Auth Sub */
    :root:not([data-theme="dark"]) .auth-sub {
        color: #64748b !important;
    }
    
    /* Dark Theme - Auth Sub */
    [data-theme="dark"] .auth-sub {
        color: #94a3b8 !important;
    }
    
    /* Form Fields - Professional & Touch-Friendly */
    .field {
        margin-bottom: 1rem;
        position: relative;
    }
    
    .form-label {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--mobile-text);
        margin-bottom: 0.5rem;
        display: block;
    }
    
    /* Light Theme - Form Label */
    :root:not([data-theme="dark"]) .form-label {
        color: #1e293b !important;
    }
    
    /* Dark Theme - Form Label */
    [data-theme="dark"] .form-label {
        color: #f1f5f9 !important;
    }
    
    .field .form-control {
        padding: 0.875rem 2.75rem 0.875rem 2.75rem;
        font-size: 16px; /* iOS zoom önleme */
        border: 1.5px solid var(--mobile-border) !important;
        border-radius: var(--mobile-radius-sm) !important;
        background: var(--mobile-card-bg) !important;
        color: var(--mobile-text) !important;
        transition: all 0.2s ease;
        min-height: 48px; /* Touch-friendly */
    }
    
    /* Light Theme - Form Control */
    :root:not([data-theme="dark"]) .field .form-control {
        background: #ffffff !important;
        border-color: #e2e8f0 !important;
        color: #1e293b !important;
    }
    
    /* Dark Theme - Form Control */
    [data-theme="dark"] .field .form-control {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #f1f5f9 !important;
    }
    
    .field .form-control:focus {
        border-color: var(--auth-primary) !important;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
        outline: none;
    }
    
    .field .form-control::placeholder {
        color: var(--mobile-text-muted);
        opacity: 0.6;
    }
    
    .field-icon {
        left: 0.875rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1rem;
        color: var(--mobile-text-muted);
        pointer-events: none;
        z-index: 1;
    }
    
    /* Light Theme - Field Icon */
    :root:not([data-theme="dark"]) .field-icon {
        color: #64748b !important;
    }
    
    /* Dark Theme - Field Icon */
    [data-theme="dark"] .field-icon {
        color: #94a3b8 !important;
    }
    
    .field-action {
        right: 0.875rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1rem;
        color: var(--mobile-text-muted);
        cursor: pointer;
        background: transparent;
        border: none;
        padding: 0.5rem;
        border-radius: 6px;
        transition: all 0.2s ease;
        z-index: 1;
    }
    
    .field-action:active {
        background: rgba(99, 102, 241, 0.1);
    }
    
    /* Light Theme - Field Action */
    :root:not([data-theme="dark"]) .field-action {
        color: #64748b !important;
    }
    
    /* Dark Theme - Field Action */
    [data-theme="dark"] .field-action {
        color: #94a3b8 !important;
    }
    
    .help {
        font-size: 0.75rem;
        color: var(--mobile-text-muted);
        margin-top: 0.375rem;
        padding-left: 0.25rem;
    }
    
    /* Buttons - Professional */
    .btn {
        min-height: 48px; /* Touch-friendly */
        font-weight: 600;
        border-radius: var(--mobile-radius-sm);
        transition: all 0.2s ease;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
        color: white !important;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }
    
    .btn-primary:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .btn-ghost {
        background: transparent !important;
        border: 1px solid var(--mobile-border) !important;
        color: var(--mobile-text) !important;
    }
    
    .btn-ghost:active {
        background: rgba(99, 102, 241, 0.1) !important;
    }
    
    /* Form Check - Professional */
    .form-check {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .form-check-input {
        width: 1.125rem;
        height: 1.125rem;
        border: 1.5px solid var(--mobile-border);
        border-radius: 4px;
        margin-top: 0;
    }
    
    .form-check-input:checked {
        background-color: var(--auth-primary);
        border-color: var(--auth-primary);
    }
    
    .form-check-label {
        font-size: 0.875rem;
        color: var(--mobile-text);
        margin-bottom: 0;
    }
    
    /* Inline Links - Professional */
    .inline-links {
        gap: 0.75rem;
        margin-bottom: 1.25rem !important;
    }
    
    .inline-links a {
        font-size: 0.875rem;
        color: var(--auth-primary);
        text-decoration: none;
        font-weight: 500;
    }
    
    .inline-links a:active {
        opacity: 0.7;
    }
    
    /* Alert - Professional */
    .alert {
        padding: 0.875rem 1rem;
        border-radius: var(--mobile-radius-sm);
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
        border: 1px solid;
    }
    
    .alert-danger {
        background: rgba(239, 68, 68, 0.1) !important;
        border-color: rgba(239, 68, 68, 0.3) !important;
        color: #dc2626 !important;
    }
    
    .alert-success {
        background: rgba(16, 185, 129, 0.1) !important;
        border-color: rgba(16, 185, 129, 0.3) !important;
        color: #059669 !important;
    }
    
    /* Light Theme - Alert */
    :root:not([data-theme="dark"]) .alert-danger {
        background: #fef2f2 !important;
        border-color: #fecaca !important;
        color: #dc2626 !important;
    }
    
    :root:not([data-theme="dark"]) .alert-success {
        background: #f0fdf4 !important;
        border-color: #bbf7d0 !important;
        color: #059669 !important;
    }
    
    /* Dark Theme - Alert */
    [data-theme="dark"] .alert-danger {
        background: rgba(239, 68, 68, 0.15) !important;
        border-color: rgba(239, 68, 68, 0.3) !important;
        color: #f87171 !important;
    }
    
    [data-theme="dark"] .alert-success {
        background: rgba(16, 185, 129, 0.15) !important;
        border-color: rgba(16, 185, 129, 0.3) !important;
        color: #34d399 !important;
    }
    
    /* Muted Text - Professional */
    .muted {
        font-size: 0.875rem;
        color: var(--mobile-text-muted);
    }
    
    .muted a {
        color: var(--auth-primary);
        font-weight: 600;
        text-decoration: none;
    }
    
    .muted a:active {
        opacity: 0.7;
    }
    
    /* Theme Toggle - Compact */
    .theme-toggle {
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Textarea - Professional */
    textarea.form-control {
        min-height: 80px;
        font-size: 16px; /* iOS zoom önleme */
        padding: 0.875rem;
        border: 1.5px solid var(--mobile-border) !important;
        border-radius: var(--mobile-radius-sm) !important;
        background: var(--mobile-card-bg) !important;
        color: var(--mobile-text) !important;
        resize: vertical;
    }
    
    /* Light Theme - Textarea */
    :root:not([data-theme="dark"]) textarea.form-control {
        background: #ffffff !important;
        border-color: #e2e8f0 !important;
        color: #1e293b !important;
    }
    
    /* Dark Theme - Textarea */
    [data-theme="dark"] textarea.form-control {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #f1f5f9 !important;
    }
    
    textarea.form-control:focus {
        border-color: var(--auth-primary) !important;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
        outline: none;
    }
    
    /* Package Selection - Professional */
    .package-selection {
        gap: 0.5rem;
    }
    
    .package-selection .btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
        min-height: 44px;
        border: 1.5px solid var(--mobile-border) !important;
        background: var(--mobile-card-bg) !important;
        color: var(--mobile-text) !important;
        transition: all 0.2s ease;
    }
    
    /* Light Theme - Package Selection */
    :root:not([data-theme="dark"]) .package-selection .btn {
        background: #ffffff !important;
        border-color: #e2e8f0 !important;
        color: #1e293b !important;
    }
    
    /* Dark Theme - Package Selection */
    [data-theme="dark"] .package-selection .btn {
        background: #1e293b !important;
        border-color: #334155 !important;
        color: #f1f5f9 !important;
    }
    
    .package-selection .btn-check:checked + .btn {
        background: var(--auth-primary) !important;
        border-color: var(--auth-primary) !important;
        color: white !important;
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    }
    
    .package-selection .btn:active {
        transform: scale(0.98);
    }
    
    /* Small text in labels */
    .form-label small {
        font-size: 0.75rem;
        font-weight: 400;
    }
    
    /* Footer - Compact */
    .auth-container .text-center.muted {
        font-size: 0.75rem;
        padding-top: 0.5rem;
        margin-top: 0.75rem !important;
    }
    
    /* Remove extra spacing */
    .auth-card {
        margin-bottom: 0.75rem;
    }
    
    .muted.text-center.text-sm-start {
        margin-top: 1rem !important;
    }
    
    /* Modal - Professional */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: var(--mobile-radius);
        border: 1px solid var(--mobile-border) !important;
        background: var(--mobile-card-bg) !important;
    }
    
    /* Light Theme - Modal */
    :root:not([data-theme="dark"]) .modal-content {
        background: #ffffff !important;
        border-color: #e2e8f0 !important;
    }
    
    /* Dark Theme - Modal */
    [data-theme="dark"] .modal-content {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    
    .modal-header {
        padding: 1rem;
        border-bottom: 1px solid var(--mobile-border) !important;
    }
    
    .modal-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--mobile-text) !important;
    }
    
    .modal-body {
        padding: 1rem;
        color: var(--mobile-text) !important;
    }
    
    .modal-footer {
        padding: 1rem;
        border-top: 1px solid var(--mobile-border) !important;
    }
    
    .modal-body i.fa-3x {
        font-size: 2.5rem !important;
    }
    
    .modal-body h6 {
        font-size: 1rem;
        margin-top: 0.5rem;
    }
    
    .modal-body p {
        font-size: 0.875rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .auth-wrap {
        padding-top: 50px;
    }
    
    .auth-container {
        padding: 0.5rem;
        padding-top: 0.25rem;
    }
    
    .auth-card .left {
        padding: 1rem;
    }
    
    .auth-title {
        font-size: 1.375rem;
        margin-bottom: 0.375rem;
    }
    
    .auth-sub {
        font-size: 0.8125rem;
        margin-bottom: 1.25rem;
    }
    
    .field {
        margin-bottom: 1rem;
    }
    
    .field .form-control {
        padding: 0.75rem 2.5rem 0.75rem 2.5rem;
        font-size: 16px;
    }
    
    .field-icon {
        left: 0.75rem;
        font-size: 0.9375rem;
    }
    
    .field-action {
        right: 0.75rem;
        font-size: 0.9375rem;
        padding: 0.375rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .inline-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .auth-wrap {
        padding-top: 50px;
    }
    
    .auth-container {
        padding: 0.5rem;
        padding-top: 0.25rem;
    }
    
    .auth-card .left {
        padding: 0.875rem;
    }
    
    .auth-title {
        margin-bottom: 0.25rem;
    }
    
    .auth-sub {
        margin-bottom: 1rem;
    }
    
    .field {
        margin-bottom: 0.875rem;
    }
    
    textarea.form-control {
        min-height: 70px;
        padding: 0.75rem;
        font-size: 16px;
    }
    
    .package-selection .btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
        min-height: 40px;
    }
    
    .inline-links {
        margin-bottom: 1rem !important;
    }
    
    .muted.text-center.text-sm-start {
        margin-top: 0.75rem !important;
    }
    
    .auth-title {
        font-size: 1.25rem;
    }
    
    .auth-sub {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .field {
        margin-bottom: 0.875rem;
    }
    
    .field .form-control {
        padding: 0.625rem 2.25rem 0.625rem 2.25rem;
        min-height: 44px;
    }
    
    .field-icon {
        left: 0.625rem;
        font-size: 0.875rem;
    }
    
    .field-action {
        right: 0.625rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
        min-height: 44px;
    }
    
    .form-check-label {
        font-size: 0.8125rem;
    }
    
    .inline-links a {
        font-size: 0.8125rem;
    }
    
    .muted {
        font-size: 0.8125rem;
    }
    
    .alert {
        padding: 0.75rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .brand {
        font-size: 0.875rem;
    }
}

