/* ==========================================
   AUTH LOGIN PAGE - Kurumsal Giriş Sayfası
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: #0f172a;
    overflow-x: hidden;
}

/* ==========================================
   LAYOUT
   ========================================== */
.auth-container {
    display: flex;
    min-height: 100vh;
}

/* Sol Panel - Branding */
.auth-brand-panel {
    flex: 1;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 50%, #1a1a2e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    animation: floatBg 20s ease-in-out infinite;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, 2%) rotate(1deg); }
}

/* Arka Plan Dişlileri */
.auth-brand-panel .bg-gear {
    position: absolute;
    color: rgba(59, 130, 246, 0.08);
    z-index: 0;
    line-height: 1;
}

.auth-brand-panel .bg-gear-1 {
    font-size: 350px;
    top: -80px;
    right: -80px;
    animation: rotateGear 60s linear infinite;
}

.auth-brand-panel .bg-gear-2 {
    font-size: 220px;
    bottom: -40px;
    left: -40px;
    animation: rotateGearReverse 45s linear infinite;
}

.auth-brand-panel .bg-gear-3 {
    font-size: 140px;
    top: 45%;
    left: 8%;
    animation: rotateGear 30s linear infinite;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 480px;
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.auth-brand-logo img {
    width: 64px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.auth-brand-logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

/* Dişli Animasyonları */
@keyframes rotateGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateGearReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.auth-brand-title {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.auth-brand-subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 48px;
}

/* Özellik listesi */
.auth-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
    text-align: left;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.auth-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-feature-icon i {
    font-size: 1rem;
    color: #60a5fa;
}

.auth-feature-text h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.auth-feature-text p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

/* Sağ Panel - Form */
.auth-form-panel {
    width: 520px;
    min-width: 520px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    position: relative;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

/* Mobile Logo (sadece mobilde görünür) */
.auth-mobile-logo {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.auth-mobile-logo img {
    width: 48px;
    height: auto;
}

.auth-mobile-logo h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

/* Form Header */
.auth-form-header {
    margin-bottom: 40px;
}

.auth-form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.auth-form-header p {
    font-size: 0.9375rem;
    color: #64748b;
}

/* Form Elements */
.auth-form-group {
    margin-bottom: 24px;
}

.auth-form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    transition: color 0.2s;
}

.auth-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    color: #0f172a;
    transition: all 0.2s ease;
}

.auth-input:focus {
    outline: none;
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.auth-input:focus + .input-icon,
.auth-input-wrapper:focus-within .input-icon {
    color: #3b82f6;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input.is-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Password Toggle */
.auth-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    transition: color 0.2s;
}

.auth-password-toggle:hover {
    color: #3b82f6;
}

/* Error Message */
.auth-error {
    color: #ef4444;
    font-size: 0.8125rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-error i {
    font-size: 0.75rem;
}

/* Remember & Forgot */
.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.auth-checkbox input {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.auth-checkbox span {
    font-size: 0.875rem;
    color: #475569;
}

.auth-forgot-link {
    font-size: 0.875rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-forgot-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.auth-submit-btn:hover::before {
    left: 100%;
}

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

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-submit-btn i {
    font-size: 1rem;
}

/* Loading spinner */
.auth-submit-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.auth-submit-btn.loading .btn-text { display: none; }
.auth-submit-btn.loading .spinner { display: block; }
.auth-submit-btn.loading i { display: none; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.auth-form-footer {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.auth-form-footer p {
    font-size: 0.875rem;
    color: #64748b;
}

.auth-form-footer a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-form-footer a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Copyright */
.auth-copyright {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ==========================================
   REGISTER - Multi Step Form
   ========================================== */

/* Step Indicator */
.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.auth-step.active .auth-step-number {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.auth-step.completed .auth-step-number {
    background: #10b981;
    color: #fff;
}

.auth-step-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.3s;
}

.auth-step.active .auth-step-text {
    color: #334155;
}

.auth-step.completed .auth-step-text {
    color: #10b981;
}

.auth-step-line {
    width: 40px;
    height: 2px;
    background: #e2e8f0;
    transition: background 0.3s;
}

.auth-step-line.active {
    background: #10b981;
}

/* Form Steps Container */
.auth-form-steps {
    position: relative;
    overflow: hidden;
}

.auth-form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

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

/* Navigation Buttons */
.auth-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.auth-btn-back {
    flex: 0 0 auto;
    padding: 14px 24px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-btn-back:hover {
    background: #e2e8f0;
}

.auth-btn-next {
    flex: 1;
    padding: 14px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

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

/* Password Strength */
.auth-password-strength {
    margin-top: 8px;
}

.auth-strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.auth-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.auth-strength-fill.weak { width: 25%; background: #ef4444; }
.auth-strength-fill.fair { width: 50%; background: #f59e0b; }
.auth-strength-fill.good { width: 75%; background: #3b82f6; }
.auth-strength-fill.strong { width: 100%; background: #10b981; }

.auth-strength-text {
    font-size: 0.75rem;
    color: #64748b;
}

/* reCAPTCHA */
.auth-recaptcha {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-recaptcha > div {
    transform: scale(0.95);
    transform-origin: center;
}

/* ==========================================
   CLIENT - Firma Bilgileri Sayfası
   ========================================== */

/* Form Row (Yan Yana) */
.auth-form-row {
    display: flex;
    gap: 16px;
}

.auth-form-half {
    flex: 1;
}

/* Select */
.auth-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px !important;
    cursor: pointer;
}

/* Textarea */
.auth-textarea {
    resize: none;
    min-height: 70px;
    padding-top: 12px !important;
    line-height: 1.5;
}

/* Sector Grid */
.auth-sector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.auth-sector-item {
    cursor: pointer;
}

.auth-sector-item input {
    display: none;
}

.auth-sector-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.auth-sector-box i {
    font-size: 1.25rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.auth-sector-box span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    transition: color 0.2s;
}

.auth-sector-item input:checked + .auth-sector-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    border-color: #3b82f6;
}

.auth-sector-item input:checked + .auth-sector-box i {
    color: #3b82f6;
}

.auth-sector-item input:checked + .auth-sector-box span {
    color: #1e40af;
}

.auth-sector-item:hover .auth-sector-box {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

@media (max-width: 480px) {
    .auth-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .auth-sector-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .auth-brand-panel {
        display: none;
    }
    
    .auth-form-panel {
        width: 100%;
        min-width: unset;
        padding: 40px 24px;
    }
    
    .auth-mobile-logo {
        display: flex;
    }
    
    .auth-form-wrapper {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .auth-form-panel {
        padding: 32px 20px;
    }
    
    .auth-form-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .auth-submit-btn {
        padding: 14px 20px;
    }
}
