/* ============================================
   register.css - Kayıt Sayfası (Sidebar'lı)
   ============================================ */

/* Ana Layout */
.register-layout {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sol: Form Alanı */
.register-main {
    flex: 1;
    min-width: 0;
    order: 1; /* Masaüstünde solda */
}

/* Sağ: Sidebar */
.register-sidebar {
    width: 340px;
    flex-shrink: 0;
    order: 2; /* Masaüstünde sağda */
}

/* Kart */
.auth-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 30px;
    color: white;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.auth-subtitle {
    color: #888;
    margin: 0;
    font-size: 14px;
}

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

.alert-error {
    background: #fff5f5;
    color: #e74c3c;
    border: 1px solid #fecaca;
}

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

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: #667eea;
    width: 16px;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.form-control.is-invalid {
    border-color: #e74c3c;
}

.form-control.is-valid {
    border-color: #27ae60;
}

.form-hint {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.invalid-feedback {
    font-size: 12px;
    min-height: 16px;
}

/* Password */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 45px;
}

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

.password-toggle:hover {
    color: #667eea;
}

.password-strength {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

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

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s;
    margin-top: 2px;
}

.checkbox-label input:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

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

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Button */
.btn-auth {
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

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

/* Kurallar */
.auth-rules {
    margin-top: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.auth-rules h4 {
    font-size: 14px;
    color: #333;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-rules li {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-rules li .fa-check-circle {
    color: #27ae60;
}

.auth-rules li .fa-times-circle {
    color: #e74c3c;
}

/* Alt Link */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.auth-footer p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .register-layout {
        flex-direction: column;
    }
    
    /* MOBİLDE FORM ÜSTTE, SİDEBAR ALTTA */
    .register-main {
        order: 1; /* Form üstte */
        width: 100%;
    }
    
    .register-sidebar {
        order: 2; /* Sidebar altta */
        width: 100%;
    }
}

@media (max-width: 600px) {
    .auth-card {
        padding: 25px 15px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .register-layout {
        margin: 15px auto;
    }
}