/**
 * OrcPharm - Signup Process CSS
 * Styles for registration, verification, and payment flow
 */

/* ============================================
   SIGNUP LAYOUT
   ============================================ */
.signup-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
}

.signup-container {
    max-width: 600px;
    width: 100%;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.signup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.signup-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.signup-header p {
    margin-bottom: 0;
    opacity: 0.9;
}

.signup-body {
    padding: 2.5rem;
}

.signup-footer {
    padding: 1.5rem 2.5rem;
    background-color: #f8f9fa;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================
   PROGRESS STEPS
   ============================================ */
.signup-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}

.signup-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 0;
}

.signup-step {
    flex: 1;
    position: relative;
    text-align: center;
}

.signup-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.signup-step.active .signup-step-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.signup-step.completed .signup-step-circle {
    background-color: #198754;
    color: #fff;
}

.signup-step-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.signup-step.active .signup-step-label {
    color: #212529;
    font-weight: 700;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-floating > label {
    color: #6c757d;
}

.form-control:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 0.25rem rgba(118, 75, 162, 0.25);
}

.form-control.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

/* ============================================
   PASSWORD STRENGTH INDICATOR
   ============================================ */
.password-strength {
    margin-top: 0.5rem;
}

.password-strength .progress {
    height: 5px;
    margin-bottom: 0.5rem;
}

.password-strength-text {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   VERIFICATION CODE INPUT
   ============================================ */
.code-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

.code-input {
    width: 50px;
    height: 60px;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    border: 2px solid #ced4da;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.code-input:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 0.25rem rgba(118, 75, 162, 0.25);
    outline: none;
}

.code-input.filled {
    background-color: #f8f9fa;
    border-color: #198754;
}

/* ============================================
   VERIFICATION TIMER
   ============================================ */
.verification-timer {
    text-align: center;
    margin: 1.5rem 0;
}

.verification-timer .timer-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.verification-timer .timer-countdown {
    font-size: 1.5rem;
    font-weight: 700;
    color: #764ba2;
    display: block;
    margin-top: 0.5rem;
}

.resend-section {
    text-align: center;
    margin-top: 1.5rem;
}

.resend-section .btn {
    font-size: 0.875rem;
}

/* ============================================
   PAYMENT SECTION
   ============================================ */
.plan-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.plan-summary h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.plan-summary .plan-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.plan-summary .detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.plan-summary .detail-row:last-child {
    margin-bottom: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    font-size: 1.25rem;
}

.billing-cycle-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.billing-cycle-option {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.billing-cycle-option input[type="radio"] {
    display: none;
}

.billing-cycle-option:hover {
    border-color: #764ba2;
}

.billing-cycle-option input[type="radio"]:checked + label {
    border-color: #764ba2;
    background-color: rgba(118, 75, 162, 0.05);
}

.billing-cycle-option label {
    margin: 0;
    cursor: pointer;
    font-weight: 600;
}

.billing-cycle-option .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #764ba2;
    display: block;
    margin-top: 0.5rem;
}

.billing-cycle-option .savings {
    font-size: 0.875rem;
    color: #198754;
    font-weight: 600;
    display: block;
    margin-top: 0.25rem;
}

.trial-badge {
    background: #198754;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.payment-security {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.payment-security i {
    color: #198754;
    margin-right: 0.5rem;
}

.payment-security small {
    color: #6c757d;
}

/* ============================================
   SUCCESS STATE
   ============================================ */
.success-animation {
    text-align: center;
    padding: 2rem;
}

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

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

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

.success-message h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

.success-message p {
    color: #6c757d;
    font-size: 1.125rem;
}

/* ============================================
   TERMS AND PRIVACY
   ============================================ */
.terms-checkbox {
    margin-top: 1.5rem;
}

.terms-checkbox .form-check-label {
    font-size: 0.875rem;
    color: #6c757d;
}

.terms-checkbox .form-check-label a {
    color: #764ba2;
    text-decoration: none;
    font-weight: 600;
}

.terms-checkbox .form-check-label a:hover {
    text-decoration: underline;
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-signup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(118, 75, 162, 0.3);
    color: #fff;
}

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

.btn-back {
    color: #6c757d;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-back:hover {
    color: #212529;
}

.btn-back i {
    margin-right: 0.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 576px) {
    .signup-container {
        margin: 1rem;
        border-radius: 1rem;
    }
    
    .signup-header h1 {
        font-size: 1.5rem;
    }
    
    .signup-body {
        padding: 1.5rem;
    }
    
    .signup-footer {
        padding: 1rem 1.5rem;
    }
    
    .code-inputs {
        gap: 0.5rem;
    }
    
    .code-input {
        width: 40px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .billing-cycle-selector {
        flex-direction: column;
    }
    
    .signup-steps {
        font-size: 0.75rem;
    }
    
    .signup-step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
}
