/* NextCredit Channel Partner Auth & OTP Styles */

.auth-card--register {
    width: min(540px, 100%) !important;
    max-width: 540px !important;
}

.auth-header-copy {
    margin-bottom: 1.25rem;
}

.auth-header-copy h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.auth-header-copy .subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.auth-field-group {
    margin-bottom: 0.95rem;
}

.auth-field-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.35rem;
}

.auth-field-group label .req {
    color: #ef4444;
    font-weight: 700;
    margin-left: 2px;
}

.auth-field-group label .opt {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.8rem;
    margin-left: 4px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap .auth-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.92rem;
    pointer-events: none;
    transition: color 0.15s ease;
    z-index: 2;
}

.auth-input-wrap .form-control,
.auth-input-wrap select.form-control {
    width: 100%;
    padding: 0.72rem 0.9rem 0.72rem 2.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    font-size: 0.92rem;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.15s ease;
    line-height: 1.4;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.auth-input-wrap select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 2.25rem;
    cursor: pointer;
}

.auth-input-wrap .form-control:focus,
.auth-input-wrap select.form-control:focus {
    border-color: #f97316;
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
    background: #ffffff;
}

.auth-input-wrap .form-control:focus ~ .auth-field-icon,
.auth-input-wrap select.form-control:focus ~ .auth-field-icon {
    color: #f97316;
}

.auth-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: #475569;
    margin: 1.15rem 0 1.25rem;
    cursor: pointer;
    line-height: 1.45;
}

.auth-terms-label input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: #ea580c;
    width: 17px;
    height: 17px;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-terms-label a {
    color: #ea580c;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-terms-label a:hover {
    color: #c2410c;
}

.btn-auth-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.4rem;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff !important;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    border-radius: 0.65rem;
    cursor: pointer;
    box-shadow: 0 6px 18px -4px rgba(234, 88, 12, 0.45);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-auth-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 8px 22px -4px rgba(234, 88, 12, 0.6);
    transform: translateY(-1px);
}

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

/* ─── OTP Verification Flow ─── */
.otp-container {
    text-align: center;
    padding: 0.5rem 0;
    animation: otpSlideIn 0.3s ease both;
}

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

.otp-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff7ed;
    color: #ea580c;
    font-size: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 2px solid #fed7aa;
}

.otp-container h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.4rem;
}

.otp-container .otp-desc {
    color: #64748b;
    font-size: 0.92rem;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.otp-container .otp-desc strong {
    color: #0f172a;
    word-break: break-all;
}

.otp-digits-row {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.otp-digit-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    background: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 0.65rem;
    outline: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.otp-digit-input:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.18);
    background: #fffaf5;
}

.otp-dev-hint {
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    color: #b45309;
    padding: 0.55rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.otp-dev-hint code {
    font-size: 1rem;
    color: #d97706;
    font-weight: 800;
    letter-spacing: 2px;
}

.otp-meta {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: center;
    font-size: 0.88rem;
}

.otp-timer {
    color: #64748b;
}

.btn-resend-otp {
    background: none;
    border: none;
    color: #ea580c;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.btn-resend-otp:hover {
    color: #c2410c;
}

.btn-edit-details {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.86rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
    transition: color 0.15s ease;
}

.btn-edit-details:hover {
    color: #0f172a;
}

/* ─── Login mode selector (OTP vs Password) ─── */
.login-mode-pills {
    display: flex;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 0.65rem;
    margin-bottom: 1.25rem;
    gap: 0.25rem;
}

.login-mode-pills button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.55rem 0.85rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.login-mode-pills button.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

@media (max-width: 640px) {
    .auth-page .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .otp-digits-row {
        gap: 0.35rem;
    }

    .otp-digit-input {
        width: 42px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* ─── Application Submitted / Pending Approval Screen ─── */
.cp-success-container {
    text-align: center;
    padding: 0.5rem 0.25rem 0.25rem;
    animation: fadeIn 0.3s ease;
}

.cp-success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
}

.cp-success-icon svg {
    width: 50px;
    height: 50px;
}

.cp-success-heading {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.55rem;
    letter-spacing: -0.02em;
}

.cp-success-badge-wrap {
    margin-bottom: 1.25rem;
}

.cp-success-badge {
    display: inline-block;
    background-color: #ffedd5;
    color: #b45309;
    border: 1px solid #fed7aa;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.28rem 0.95rem;
    border-radius: 9999px;
    letter-spacing: 0.2px;
}

.cp-success-subheading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.45rem;
}

.cp-success-desc {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0 auto 1.5rem;
    max-width: 440px;
}

.cp-success-steps-card {
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.4rem;
}

.cp-steps-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.95rem;
}

.cp-step-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    color: #334155;
}

.cp-step-item:last-child {
    margin-bottom: 0;
}

.cp-step-icon {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cp-icon--success {
    color: #16a34a;
}

.cp-icon--waiting {
    color: #ea580c;
}

.cp-icon--locked {
    color: #94a3b8;
}

.cp-step-label {
    font-weight: 600;
}

.cp-success-footer-note {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.cp-success-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

