/**
 * Authentication Pages CSS
 * Login, Registration ve diğer auth sayfaları için
 */

/* ========================================
   1. ROOT VARIABLES
   ======================================== */
:root {
    --auth-primary: #667eea;
    --auth-secondary: #764ba2;
    --auth-gradient: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-secondary) 100%);
    --auth-success: #28a745;
    --auth-success-light: #d4edda;
    --auth-warning: #ffc107;
    --auth-danger: #dc3545;
    --auth-info: #17a2b8;
    --auth-light: #f8f9fa;
    --auth-dark: #343a40;
}

/* ========================================
   2. GENEL AUTH STİLLERİ
   ======================================== */
html,
body {
    background: var(--auth-gradient);
}

.auth-header {
    background: #fff;
    color: black;
    padding: 2rem 0;
    min-height: 140px;
    display: flex;
    align-items: center;
}

.auth-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.logo-container img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

/* Header Content - Beyaz renk garantisi */
.auth-header .header-content {
    color: rgb(0, 0, 0) !important;
}

.auth-header .header-title {
    color: rgb(0, 0, 0) !important;
    font-weight: 600;
    font-size: 1.5rem;
}

.auth-header .header-subtitle {
    color: rgba(0, 0, 0, 0.9) !important;
    font-size: 1rem;
}

.auth-header .platform-badge {
    background: rgba(255, 255, 255, 0.2);
    color: rgb(0, 0, 0) !important;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Icon renkleri */
.auth-header .bi {
    color: rgb(0, 0, 0) !important;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .auth-header {
        padding: 1.5rem 0;
        min-height: 120px;
    }

    .auth-header-container {
        flex-direction: column;
        text-align: center;
        align-items: center !important;
    }

    .auth-header .logo-container {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }

    .auth-header .logo-container img {
        max-height: 60px;
    }

    .auth-header .header-title {
        font-size: 1.25rem;
    }

    .auth-header .header-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .auth-header {
        padding: 1rem 0;
        min-height: 100px;
    }

    .auth-header-container {
        padding: 0 1rem;
    }

    .auth-header .logo-container img {
        max-height: 50px;
    }

    .auth-header .header-title {
        font-size: 1.125rem;
    }

    .auth-header .header-subtitle {
        font-size: 0.85rem;
    }

    .auth-header .platform-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
}

/* Auth sayfası genel stilleri */
.auth-page {
    min-height: 100vh;
}

.auth-card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-body {
    padding: 2rem;
}

.footer-text {
    text-align: center;
    margin-top: 2rem;
    color: #6c757d;
    font-size: 0.875rem;
}

/* ========================================
   3. LOGIN SAYFA STİLLERİ
   ======================================== */
.auth-card-login {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.auth-login-header {
    background: var(--auth-gradient);
    color: white;
    text-align: center;
    padding: 3rem;
}

.auth-login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-login-header p {
    opacity: 0.9;
    margin: 0;
    font-size: 1rem;
}

.auth-login-body {
    padding: 3rem;
}

/* ========================================
   4. REGISTRATION SAYFA STİLLERİ
   ======================================== */
.auth-card-registration {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin: 2rem 0;
}

.registration-layout {
    /* Bootstrap row/col kullanıldığı için grid kaldırıldı */
}

.registration-info {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    padding: 3.5rem;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.registration-form-area {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ========================================
   5. PLATFORM YETENEKLERİ KARTI
   ======================================== */
.platform-features-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.features-header h3 {
    color: var(--auth-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.features-header p {
    color: #6c757d;
    margin: 0;
    font-size: 1.1rem;
}

.features-grid {
    /* Bootstrap grid kullanıldığı için kaldırıldı */
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-item:hover {
    border-color: var(--auth-primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, #ffffff 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    background: var(--auth-gradient);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

.feature-content h5 {
    color: var(--auth-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   6. FORM STİLLERİ
   ======================================== */
.auth-form {
    width: 100%;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-form-header h2 {
    color: var(--auth-dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.auth-form-header p {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
}

.form-floating {
    margin-bottom: 1.5rem;
}

.form-floating .form-control {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 1.25rem 1rem 0.75rem;
    min-height: calc(3.5rem + 2px);
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
}

.form-floating .form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
    background-color: white;
}

.form-floating label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 1rem;
    background: transparent;
}

.form-floating label i {
    margin-right: 0.5rem;
    color: var(--auth-primary);
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
}

/* ========================================
   7. ŞİFRE GÜÇLÜĞÜ
   ======================================== */
.password-requirements {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.password-requirements-title {
    font-weight: 600;
    color: var(--auth-dark);
    margin-bottom: 0.5rem;
}

.password-requirements ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style: none;
}

.password-requirements li {
    color: #dc3545;
    margin-bottom: 0.25rem;
    position: relative;
    transition: color 0.2s ease;
}

.password-requirements li:before {
    content: "✗";
    position: absolute;
    left: -1rem;
    font-weight: bold;
}

.password-requirements li.valid {
    color: #28a745;
}

.password-requirements li.valid:before {
    content: "✓";
}

.password-strength-bar {
    margin-top: 0.75rem;
}

.password-strength-bar .progress {
    height: 4px;
    border-radius: 2px;
    background: #e9ecef;
}

.password-strength-text {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* ========================================
   8. CHECKBOX VE TERMS
   ======================================== */
.form-check {
    margin-bottom: 1.5rem;
}

.form-check-input {
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-top: 0.25rem;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-check-label {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-check-label strong {
    color: var(--auth-primary);
}

/* ========================================
   9. BUTTON STİLLERİ
   ======================================== */
.auth-btn {
    background: var(--auth-gradient);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.auth-btn:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.auth-btn i {
    margin-right: 0.5rem;
}

.auth-btn.loading {
    color: transparent;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* ========================================
   10. LINKS VE FOOTER
   ======================================== */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
}

.auth-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.auth-footer i {
    color: var(--auth-success);
    margin-right: 0.25rem;
}

/* ========================================
   11. SUCCESS SAYFA STİLLERİ
   ======================================== */
.success-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.success-header {
    background: linear-gradient(135deg, var(--auth-success) 0%, #20c997 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.success-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.success-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.success-body {
    padding: 2.5rem 2rem;
}

.next-steps-card {
    background: var(--auth-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.next-steps-title {
    color: var(--auth-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.next-steps-title i {
    margin-right: 0.5rem;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    background: var(--auth-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.step-text {
    color: #495057;
    font-size: 0.9rem;
}

.verification-status {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: center;
}

.action-buttons {
    margin-top: 2rem;
}

.action-buttons .btn {
    margin-bottom: 0.75rem;
}

.btn-resend {
    background: #6c757d;
    border-color: #6c757d;
}

.btn-resend:hover {
    background: #5a6268;
    border-color: #545b62;
}

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

/* ========================================
   12. RESPONSIVE DESİGN
   ======================================== */

/* Large Desktop */
@media (min-width: 1400px) {
    /* Bootstrap container kullanıldığı için max-width kaldırıldı */
}

/* Desktop to Tablet */
@media (max-width: 1200px) {
    /* Bootstrap responsive grid kullanıldığı için kaldırıldı */
}

/* Tablet */
@media (max-width: 991px) {
    .registration-info {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 2.5rem;
    }

    .registration-form-area {
        padding: 2.5rem;
    }

    .feature-item {
        padding: 1.25rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .auth-page {
        padding: 0.5rem;
    }

    .auth-card-login {
        border-radius: 12px;
    }

    .auth-login-header {
        padding: 2rem 1.5rem;
    }

    .auth-login-header h1 {
        font-size: 1.5rem;
    }

    .auth-login-body {
        padding: 2rem 1.5rem;
    }

    .registration-info,
    .registration-form-area {
        padding: 1.5rem 1rem;
    }

    .platform-features-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }

    .features-header h3 {
        font-size: 1.25rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }

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

    .success-header {
        padding: 2rem 1.5rem;
    }

    .success-header h1 {
        font-size: 1.5rem;
    }

    .success-body {
        padding: 2rem 1.5rem;
    }
}

/* Very Small Mobile */
@media (max-width: 576px) {
    .auth-page {
        padding: 0.25rem;
    }

    .registration-info,
    .registration-form-area,
    .platform-features-card {
        padding: 1rem 0.75rem;
    }

    .features-header h3 {
        font-size: 1.125rem;
    }

    .feature-content h5 {
        font-size: 0.9rem;
    }

    .feature-content p {
        font-size: 0.8rem;
    }

    .auth-form-header h2 {
        font-size: 1.25rem;
    }
}

/* ========================================
   13. MODAL STİLLERİ
   ======================================== */
.verification-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.verification-modal .modal-header {
    background: var(--auth-gradient);
    color: white;
    border: none;
    padding: 2rem 1.5rem 1rem;
}

.verification-modal .modal-title {
    font-weight: 600;
}

.verification-modal .modal-body {
    padding: 2rem 1.5rem;
}

.email-icon {
    font-size: 4rem;
    color: var(--auth-primary);
    margin-bottom: 1rem;
}

.verification-modal .alert {
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
}

.verification-modal .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
}

/* ========================================
   14. UTILITIES
   ======================================== */
.text-auth-primary {
    color: var(--auth-primary) !important;
}

.bg-auth-gradient {
    background: var(--auth-gradient) !important;
}

.border-auth-primary {
    border-color: var(--auth-primary) !important;
}