/* Registration Form Styles */

:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Registration Container */
.registration-container {
    width: 100%;
}

.registration-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.registration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
}

.card-header h2 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-header p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Form Styling */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.6rem;
}

.form-label .text-danger {
    font-weight: 700;
    margin-left: 2px;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

.form-control.is-invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.1);
}

.form-control-lg {
    padding: 0.85rem 1.2rem;
    font-size: 1.05rem;
}

/* Form Validation Feedback */
.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.form-check-label {
    font-weight: 500;
    color: #555;
    margin-top: 0.25rem;
}

.form-check-input {
    border-radius: 4px;
    border: 2px solid #dee2e6;
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.3rem;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

/* Small text styling */
.form-text {
    font-size: 0.85rem;
    color: #6c757d;
    display: block;
    margin-top: 0.4rem;
}

/* Button Styling */
.btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
}

/* Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    border: 1px solid;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Toastr Customization */
.toast-container {
    z-index: 10000;
}

.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
}

.toast-header {
    background-color: inherit;
    border: none;
}

.toastr {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 500;
}

.toast-success {
    background-color: var(--success-color);
}

.toast-error {
    background-color: var(--danger-color);
}

.toast-warning {
    background-color: var(--warning-color);
}

.toast-info {
    background-color: var(--info-color);
}

/* Horizontal Line */
hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 2rem 0;
}

/* Admin Link */
.text-primary {
    color: var(--primary-color) !important;
}

.fw-bold {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .registration-card {
        border-radius: 8px;
    }
    
    .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    .card-header {
        padding: 2rem 1.5rem !important;
    }
    
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .card-header p {
        font-size: 0.85rem;
    }
    
    .form-label {
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }
}

/* Loading State */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .registration-card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #434343 0%, #000000 100%);
    }
    
    .registration-card {
        background-color: #2b2b2b;
        color: #e0e0e0;
    }
    
    .form-label,
    .form-check-label {
        color: #e0e0e0;
    }
    
    .form-control,
    .form-select {
        background-color: #3a3a3a;
        border-color: #555;
        color: #e0e0e0;
    }
    
    .form-control:focus,
    .form-select:focus {
        background-color: #3a3a3a;
        color: #e0e0e0;
    }
    
    .text-primary {
        color: #667eea !important;
    }
}
