/* ============================================
   Register Provider Modal Styles
   ============================================ */

/* Modal Base Styles */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2.5rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.section-title i {
    color: #667eea;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Form Controls */
.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

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

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #f56565;
}

/* Institution Section */
.institution-section {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

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

.btn-outline-secondary {
    border: 2px solid #e2e8f0;
    color: #4a5568;
    border-radius: 10px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

/* Verification Section */
.verification-section {
    text-align: center;
    padding: 2rem 1rem;
}

.verification-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.verification-icon i {
    font-size: 3rem;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
    }
}

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

.verification-text {
    color: #718096;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.code-input-wrapper {
    max-width: 300px;
    margin: 0 auto;
}

.code-input {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1.5rem;
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace;
}

.resend-section {
    text-align: center;
}

.resend-timer {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

.resend-btn {
    font-size: 0.9rem;
    padding: 0;
    text-decoration: none;
}

.resend-btn:hover {
    text-decoration: underline;
}

/* Success Section */
.success-section {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon i {
    font-size: 3rem;
    color: white;
}

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

.success-text {
    color: #718096;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.success-subtext {
    color: #718096;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
    font-weight: 600;
}

.app-btn.app-store {
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
}

.app-btn.google-play {
    background: linear-gradient(135deg, #34a853 0%, #4285f4 100%);
}

.app-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.app-btn i {
    font-size: 2rem;
}

.app-btn div {
    text-align: left;
}

.app-btn small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
}

.app-btn strong {
    display: block;
    font-size: 1rem;
}

/* Password Requirements */
.password-requirements {
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-body {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-outline-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .app-buttons {
        flex-direction: column;
    }

    .app-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Loading States */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Form Validation */
.invalid-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #f56565;
}

