/* Register Page - Modern Styling */

.gradient-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.card-registration {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-registration:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.card-registration .card-body {
    position: relative;
}

/* Form Title */
.card-registration h3.mb-4 {
    color: #333;
    font-weight: 600;
    position: relative;
}

.card-registration h3.mb-4.pb-2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Form Labels */
.card-registration label.control-label {
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    transition: color 0.2s ease;
}

/* Form Inputs */
.card-registration .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.card-registration .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background-color: #fff;
    outline: none;
}

.card-registration .form-control:hover:not(:focus) {
    border-color: #c0c0c0;
}

/* Select styling */
.card-registration select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Form Groups */
.card-registration .form-group {
    margin-bottom: 1.25rem;
}

/* Submit Button */
.card-registration button[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-registration button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

.card-registration button[type="submit"]:active {
    transform: translateY(0);
}

.card-registration button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Links */
.card-registration a {
    color: #667eea;
    font-weight: 500;
    transition: color 0.2s ease;
}

.card-registration a:hover {
    color: #764ba2;
    text-decoration: underline !important;
}

/* Error States */
.card-registration .form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23dc3545' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.card-registration .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.card-registration .invalid-feedback {
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

/* Alerts */
.card-registration .alert-danger {
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    color: #dc3545;
    padding: 12px 16px;
}

/* Language Switcher positioning */
.card-registration .text-right {
    position: absolute !important;
    top: 20px;
    right: 20px;
    z-index: 10;
}

/* Loader Styles */
#register-loader {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#register-loader .fa-spinner {
    font-size: 1.1rem;
}

/* Row spacing */
.card-registration .row {
    margin-left: -10px;
    margin-right: -10px;
}

.card-registration .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

/* Logo Image */
.card-registration img[src*="logo"] {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Link section at bottom */
.card-registration .text-center,
.card-registration .text-left {
    margin-top: 1rem;
}

.card-registration .text-center a,
.card-registration .text-left a {
    font-size: 0.9rem;
}

/* Turnstile Container */
.cf-turnstile {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gradient-custom {
        padding: 1rem;
    }
    
    .card-registration {
        border-radius: 12px !important;
    }
    
    .card-registration .card-body {
        padding: 1.5rem !important;
    }
    
    .card-registration img[src*="logo"] {
        max-width: 250px;
    }
    
    .card-registration .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .card-registration h3.mb-4.pb-2 {
        font-size: 1.25rem;
    }
}

/* Animation for form appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-registration {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus indicator for accessibility */
.card-registration .form-control:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Placeholder styling */
.card-registration .form-control::placeholder {
    color: #aaa;
    font-size: 0.9rem;
}
