/* Register Form Styles */
.register-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.register-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.6s ease-out;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h2 {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
}

.form-group:focus-within .form-label {
    color: #667eea;
}

.form-group:focus-within .form-label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
    animation: underlineExpand 0.3s ease-out;
}

@keyframes underlineExpand {
    from { width: 0; }
    to { width: 100%; }
}

/* Form Control Styling */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333333;
    min-height: 50px;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25), 0 4px 12px rgba(102, 126, 234, 0.15);
    background: white;
    outline: none;
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: #b8c5ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-control::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* Input Group Styling - Desktop */
.input-group-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
    border-right: none;
    color: #667eea;
    font-weight: 600;
    border-radius: 12px 0 0 12px;
    padding: 16px 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group-text i {
    font-size: 1.1rem;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.input-group:focus-within .input-group-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Form Check Styling */
.form-check {
    margin-bottom: 15px;
    padding: 16px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-check:hover {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    border-radius: 6px;
    margin: 0;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-check-input:checked {
    background: #667eea;
    border-color: #667eea;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-7.5 7.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6 10.293l7.146-7.147a.5.5 0 0 1 .708.708z'/%3e%3c/svg%3e");
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-check-label {
    margin: 0;
    color: #4a5568;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    flex: 1;
}

/* Alert Styling */
.alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

/* Modal Styling */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
    padding: 20px 25px;
}

.modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.modal-body {
    padding: 25px;
    line-height: 1.6;
}

.modal-body ul {
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-footer {
    border: none;
    padding: 20px 25px;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

/* Form Validasyon Stilleri */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    background: rgba(220, 53, 69, 0.05);
    color: #333333;
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    background: rgba(40, 167, 69, 0.05);
    color: #333333;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.invalid-feedback::before {
    content: '⚠';
    font-size: 1rem;
}

.valid-feedback {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.valid-feedback::before {
    content: '✓';
    font-size: 1rem;
    font-weight: bold;
}

/* Loading Spinner */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Textarea Stilleri */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Animasyonlar */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-box {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Tasarım - 768px */
@media (max-width: 768px) {
    .register-box {
        padding: 25px 20px;
        margin: 10px;
        max-width: 100%;
    }
    
    .register-header h2 {
        font-size: 1.5rem;
    }
    
    .register-header p {
        font-size: 0.9rem;
    }
    
    .form-control {
        font-size: 18px;
        padding: 20px 22px;
        min-height: 60px;
        border-radius: 12px;
        margin-bottom: 12px;
        border: 3px solid #e9ecef;
        background: #ffffff !important;
        color: #333333 !important;
        width: 100%;
    }
    
    .form-control:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.3rem rgba(102, 126, 234, 0.25);
        background: #ffffff !important;
        color: #333333 !important;
        transform: none;
    }
    
    .form-control:hover {
        background: #ffffff !important;
        color: #333333 !important;
    }
    
    .form-label {
        font-size: 1.1rem;
        margin-bottom: 15px;
        font-weight: 700;
    }
    
    .form-group {
        margin-bottom: 25px;
    }
    
    .btn-primary, .btn-success {
        padding: 18px 25px;
        font-size: 1.1rem;
        min-height: 60px;
        border-radius: 12px;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .input-group-text {
        min-height: 60px;
        padding: 20px 22px;
        font-size: 1rem;
        border: 3px solid #e9ecef;
        background: #f8f9fa;
    }
    
    .input-group {
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
    }
    
    .input-group .form-control {
        border-radius: 12px;
        margin-bottom: 0;
        border-top: none;
    }
    
    .input-group .btn {
        border-radius: 12px;
        margin-top: 10px;
        width: 100%;
    }
}

/* Responsive Tasarım - 576px */
@media (max-width: 576px) {
    .register-container {
        padding: 10px;
    }
    
    .register-box {
        padding: 20px 15px;
        margin: 5px;
        border-radius: 15px;
    }
    
    .register-header {
        margin-bottom: 25px;
    }
    
    .register-header h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .register-header p {
        font-size: 0.85rem;
    }
    
    .form-label {
        font-size: 1.1rem;
        margin-bottom: 15px;
        font-weight: 700;
    }
    
    .form-control {
        padding: 20px 22px;
        font-size: 18px;
        border-radius: 12px;
        min-height: 60px;
        margin-bottom: 12px;
        border: 3px solid #e9ecef;
        background: #ffffff !important;
        color: #333333 !important;
        width: 100%;
    }
    
    .form-control:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.3rem rgba(102, 126, 234, 0.25);
        background: #ffffff !important;
        color: #333333 !important;
        transform: none;
    }
    
    .btn-primary, .btn-success {
        padding: 18px 25px;
        font-size: 1.1rem;
        width: 100%;
        margin-bottom: 15px;
        min-height: 60px;
        border-radius: 12px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
    }
    
    .input-group-text {
        border-radius: 12px;
        border: 3px solid #e9ecef;
        margin-bottom: 0;
        min-height: 60px;
        padding: 20px 22px;
        font-size: 1rem;
        background: #f8f9fa;
    }
    
    .input-group .form-control {
        border-radius: 12px;
        border: 3px solid #e9ecef;
        border-top: none;
        background: #ffffff !important;
        color: #333333 !important;
    }
    
    .input-group .btn {
        border-radius: 12px;
        margin-top: 10px;
        width: 100%;
    }
    
    .alert {
        padding: 12px 15px;
        margin-bottom: 15px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .modal-body {
        padding: 15px;
    }
}

/* Form element z-index fixes */
.form-control {
    position: relative;
    z-index: 2;
    margin-bottom: 5px;
    color: #333333 !important;
    background: #ffffff !important;
}

.input-group {
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
}

/* Fix autocomplete dropdown overlap */
.form-control:-webkit-autofill {
    z-index: 1 !important;
    color: #333333 !important;
    background: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #333333 !important;
    font-size: 18px !important;
    padding: 20px 22px !important;
    min-height: 60px !important;
}

.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    color: #333333 !important;
    background: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #333333 !important;
    font-size: 18px !important;
    padding: 20px 22px !important;
    min-height: 60px !important;
}

/* Mobile autocomplete fixes */
@media (max-width: 768px) {
    .form-control:-webkit-autofill {
        font-size: 18px !important;
        padding: 20px 22px !important;
        min-height: 60px !important;
    }
}

@media (max-width: 576px) {
    .form-control:-webkit-autofill {
        font-size: 18px !important;
        padding: 20px 22px !important;
        min-height: 60px !important;
    }
}

/* Dropdown positioning fix */
.dropdown-menu {
    position: absolute !important;
    z-index: 9999 !important;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Form control spacing */
.form-control + .btn,
.form-control + .alert {
    margin-top: 10px;
}

/* Input Group Responsive - 576px için özel yapı */
@media (max-width: 576px) {
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-group-text {
        width: 100%;
        border-radius: 10px 10px 0 0;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        text-align: center;
        min-height: 60px;
        padding: 20px 22px;
        font-size: 1rem;
        background: #f8f9fa;
        border: 3px solid #e9ecef;
        border-bottom: 1px solid #e9ecef;
    }
    
    .input-group .form-control {
        width: 100%;
        border-radius: 0 0 10px 10px;
        border-left: none;
        border-top: none;
        border: 3px solid #e9ecef;
        border-top: none;
        border-left: none;
        background: #ffffff !important;
        color: #333333 !important;
        min-height: 60px;
        padding: 20px 22px;
        font-size: 18px;
    }
}