/**
 * BÜYEM Auth Modal Styles
 * Giriş Yap / Kayıt Ol Modal Tasarımı
 */

/* Modal Overlay */
.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Container */
.auth-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 100000;
}

.auth-modal-overlay.active .auth-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.auth-modal-header {
    background: linear-gradient(135deg, #1c458b 0%, #2a5298 50%, #3461bf 100%);
    color: #fff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.auth-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.auth-modal-close:hover {
    opacity: 1;
}

/* Modal Body */
.auth-modal-body {
    padding: 0;
    overflow-y: auto;
    max-height: calc(90vh - 70px);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
}

.auth-tab {
    flex: 1;
    padding: 18px 20px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.auth-tab:hover {
    color: #0f73a7;
}

.auth-tab.active {
    color: #0f73a7;
}

.auth-tab.active::after {
    background: #0f73a7;
}

.auth-tab i {
    font-size: 16px;
}

/* Auth Form Container */
.auth-form-container {
    padding: 30px;
}

.auth-form {
    display: none;
}

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

/* Form Groups */
.auth-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.auth-form-row.single {
    grid-template-columns: 1fr;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    background: #fafafa;
}

.auth-form-input:focus {
    outline: none;
    border-color: #0f73a7;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 115, 167, 0.1);
}

.auth-form-input::placeholder {
    color: #999;
}

/* Password Field with Toggle */
.password-field {
    position: relative;
}

.password-field .auth-form-input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #666;
}

/* Checkbox */
.auth-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #0f73a7;
    cursor: pointer;
}

.auth-checkbox-label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1c458b 0%, #2a5298 50%, #3461bf 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #3b8dc2 0%, #04498f 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 115, 167, 0.3);
}

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

.auth-submit-btn i {
    font-size: 18px;
}

/* Forgot Password Link */
.auth-forgot-link {
    display: inline-block;
    margin-top: 20px;
    color: #0f73a7;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-forgot-link:hover {
    color: #003a7b;
    text-decoration: underline;
}

/* Alert Messages */
.auth-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-alert i {
    font-size: 18px;
}

.auth-alert.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.auth-alert.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.auth-alert.warning {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc80;
}

/* Terms Text */
.auth-terms {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.6;
}

.auth-terms a {
    color: #0f73a7;
    text-decoration: none;
}

.auth-terms a:hover {
    color: #003a7b;
    text-decoration: underline;
}

/* Loading Spinner */
.auth-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 576px) {
    .auth-modal {
        max-width: 100%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .auth-modal-header {
        padding: 16px 20px;
    }
    
    .auth-modal-header h3 {
        font-size: 18px;
    }
    
    .auth-form-container {
        padding: 20px;
    }
    
    .auth-form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-tab {
        padding: 14px 15px;
        font-size: 14px;
    }
    
    .auth-form-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .auth-submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}

