/**
 * Form Register Styles
 * Styles for the registration form in vio_affiliate module
 */

/* Form Container Styling */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    border-left: 4px solid #007bff;
}

/* Header Styling */
.form-header {
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    color: white;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1rem;
    color: #718096;
    margin: 0;
}

/* Progress Indicator */
.progress-indicator {
    position: relative;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #007bff;
}

/* Form Labels */
.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required-field {
    position: relative;
    padding-right: 20px;
}

.required-indicator {
    color: #e53e3e;
    font-weight: bold;
    margin-left: 2px;
}

/* Form Controls */
.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f7fafc;
}

.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #e53e3e;
    background: #fff5f5;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #38a169;
    background: #f0fff4;
}

/* Input Group */
.input-group-text {
    border: 2px solid #e2e8f0;
    border-right: none;
    background: #f7fafc;
    color: #4a5568;
    font-weight: 500;
    border-radius: 8px 0 0 8px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.input-group .form-control:focus {
    border-left: 2px solid #e2e8f0;
}

.input-group .form-control:hover {
    border-color: #b3d7ff;
}

/* Form Check */
.form-check {
    padding-left: 1.75rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #cbd5e0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-check-label {
    font-size: 0.95rem;
    color: #2d3748;
    cursor: pointer;
}

/* Phone Preview */
.phone-preview {
    font-size: 0.875rem;
    color: #007bff;
    font-weight: 500;
    background: #edf2f7;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
    color: white;
}

.btn-submit:active {
    transform: translateY(0);
}

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

/* Form Text */
.form-text {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.25rem;
}

/* Invalid Feedback */
.invalid-feedback {
    display: none;
    font-size: 0.875rem;
    color: #e53e3e;
    margin-top: 0.25rem;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Alerts */
.alert {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    border: none;
}

.alert-danger {
    background: #fff5f5;
    color: #c53030;
    border-left: 4px solid #e53e3e;
}

.alert-success {
    background: #f0fff4;
    color: #276749;
    border-left: 4px solid #38a169;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-subtitle {
        font-size: 0.9rem;
    }

    .header-icon {
        width: 64px;
        height: 64px;
    }

    .header-icon svg {
        width: 32px;
        height: 32px;
    }

    .form-control,
    .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .btn-submit {
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1rem;
        margin: 0.5rem;
    }

    .form-title {
        font-size: 1.25rem;
    }

    .form-subtitle {
        font-size: 0.85rem;
    }

    .input-group-text {
        font-size: 0.875rem;
    }
}

/* Focus States for Accessibility */
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-control,
    .form-select {
        border-width: 3px;
    }

    .required-indicator {
        font-size: 1.2rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .form-control,
    .form-select,
    .btn-submit,
    .progress-bar {
        transition: none;
    }
}
