/**
 * Shared styles for registration flow pages:
 * register_app_download, register_issue_options, register_email_help
 * Design: background image + overlay, white text, semi-transparent white card, orange buttons
 *
 * All styles required by these pages are in this file only (no dependency on style.css).
 */

/* ========== Register flow only: replace style.css usage ========== */
.register-flow-page .crlwth {
    color: #1b1834 !important;
}

.register-flow-page .crlorg {
    color: #e98f26 !important;
}

.register-flow-page .login_type_main_section {
    padding-top: 60px;
}

.register-flow-page .register_type_wrap {
    padding-top: 0;
}

/* Buttons: .register_btn and .btn-dark used on these pages */
.register-flow-page .register_btn,
.register-flow-page .btn.register_btn {
    background-color: #e98f26 !important;
    background: linear-gradient(to right, #ffb714, #e98f26) !important;
    color: #1b1834 !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 10px 30px;
}

.register-flow-page .register_btn:hover,
.register-flow-page .btn.register_btn:hover {
    background-color: #e98f26 !important;
    color: #1b1834 !important;
    border: none !important;
}

/* Card and login-card used in blades */
.register-flow-page .card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.15), 0 6px 20px 0 rgba(0, 0, 0, 0.12);
}

.register-flow-page .login-card {
    border-radius: 20px;
}

.register-flow-page .login-card h6 {
    color: inherit;
    font-weight: 700;
}

.register-flow-page .login-card p {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
}

/* All dark/primary buttons on register flow use orange */
.register-flow-page .btn-dark {
    background-color: #e98f26 !important;
    color: #1b1834 !important;
    border: none !important;
}

.register-flow-page .btn-dark:hover {
    background-color: #d67e1f !important;
    color: #1b1834 !important;
}

/* ========== Page layout ========== */
.register-flow-page {
    min-height: 100vh;
}

/* Background wrapper: image set inline in blade; overlay and layout here */
.register-flow-bg-wrap {
    position: relative;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-bottom: 80px;
}

.register-flow-bg-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    z-index: 0;
}

.register-flow-bg-wrap > .container,
.register-flow-bg-wrap > .register_type_wrap {
    position: relative;
    z-index: 1;
}

.register-flow-page .login_type_main_section {
    padding-bottom: 80px;
}

/* No gradient: background comes from inline image + overlay *
.register-flow-bg-wrap.login_type_main_section,
.register-flow-page .register-flow-bg-wrap .register_type_wrap {
    background: none !important;
}*/

.register-flow-page .login_type_section {
    margin-top: 40px;
}

/* Consistent white text across all register flow pages */
.register-flow-page .login_type_content_area h2 {
    font-size: 36px;
    margin-bottom: 0;
    color: #1b1834 !important;
}

.register-flow-page .login_type_content_area h2 .crlorg {
    color: #e98f26 !important;
}

.register-flow-page .login_type_content {
    margin-top: 16px;
}

.register-flow-page .login_type_content p {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    opacity: 0.95;
    color: #1b1834 !important;
}

/* Card: semi-transparent white, consistent across pages */
.register-flow-card {
    margin-top: 32px;
    padding: 2rem 1.75rem !important;
    min-height: 1px;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 25px !important;
    border: none !important;
}

.register-flow-card .register-flow-label {
    color: #1b1834 !important;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

/* App download badges */
.register-flow-app-badge {
    display: inline-block;
    max-width: 260px;
    transition: transform 0.2s ease;
}

.register-flow-app-badge:hover {
    transform: scale(1.02);
}

.register-flow-app-badge img {
    width: 100%;
    height: auto;
}

.register-flow-divider {
    margin: 1.5rem 0;
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

/* Back button: orange with white text */
.register-flow-page .login_back_btn {
    background-color: #e98f26 !important;
    color: #1b1834 !important;
    border: none !important;
}

/* Primary action buttons: orange with white text */
.register-flow-btn {
    padding: 14px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 25px;
    transition: opacity 0.2s ease;
    background-color: #e98f26 !important;
    color: #1b1834 !important;
    border: none !important;
}

.register-flow-btn:hover {
    opacity: 0.95;
    color: #1b1834 !important;
}

/* Email help sections inside card */
.register-flow-help-section {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.register-flow-help-section:last-of-type {
    margin-bottom: 0;
}

.register-flow-help-section h6 {
    color: #e98f26;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.register-flow-help-section ol {
    color: #1b1834 !important;
    padding-left: 1.25rem;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.register-flow-help-section li {
    margin-bottom: 0.4rem;
    color: #1b1834 !important;
}

.register-flow-help-section a {
    color: #1b1834 !important;
    font-weight: 600;
    text-decoration: underline;
}

.register-flow-help-section a:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.register-flow-back-row {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

/* App download page: same background image as user login blade (.login_form) */
/* Image URL is set inline in the blade via asset() so it works with any APP_URL/subpath */
.register-app-download-page {
    min-height: 100vh;
}

/* Background is on the wrap div (set in blade) - ensure it displays like .login_form */
.register-app-download-wrap {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

/*.register-app-download-page .login_type_main_section.register-app-download-wrap,
.register-app-download-page .register_type_wrap {
    background: none !important;
}*/

.register-app-download-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.register-app-download-wrap::before {
    z-index: 0;
}

.register-app-download-wrap .container,
.register-app-download-wrap .register_type_wrap {
    position: relative;
    z-index: 1;
}

.register-app-download-wrap .container:first-of-type {
    text-align: left;
}

.register-app-download-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.register-app-download-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 1rem 3rem;
}

.register-app-download-content {
    margin-bottom: 1rem;
}

/* Logo: same size as user login .section_two .form_img */
.register-app-download-content .register-app-download-logo.form_img,
.register-app-download-content .form_img.register-app-download-logo {
    max-width: 100%;
    height: 120px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.25rem;
}

.register-app-download-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #1b1834 !important;
}

.register-app-download-content h2 .crlorg {
    color: #e98f26 !important;
}

.register-app-download-content .login_type_content p {
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.95;
    color: #1b1834 !important;
}

.register-app-download-card-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 560px;
}

.register-app-download-card {
    width: 100%;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 25px;
    border: none;
}

.register-app-download-hint {
    font-size: 0.95rem;
    color: #1b1834 !important;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.register-app-download-hint strong {
    color: #1b1834 !important;
}

.register-app-download-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.register-app-download-badges .register-flow-app-badge {
    flex: 0 0 auto;
    max-width: 200px;
}

@media (max-width: 480px) {
    .register-app-download-badges {
        flex-direction: column;
        gap: 1rem;
    }

    .register-app-download-badges .register-flow-app-badge {
        max-width: 220px;
    }
}

/* Modal: web registration / referral notice (register_issue_options) */
.register-flow-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.register-flow-modal .modal-title {
    color: #1b1852;
    font-weight: 700;
}

.register-flow-modal .modal-body p {
    color: #333;
}

.register-flow-modal .modal-footer .cancel-btn {
    background-color: #6c757d !important;
    color: #fff !important;
}

.register-flow-modal .modal-footer .cancel-btn:hover {
    background-color: #5a6268 !important;
    color: #fff !important;
}
