/* ==========================================================================
   SWAM REGISTRATION PAGE STYLES
   Unified stylesheet for the User Registration Portal & OCR Scanner
   ========================================================================== */

:root {
    --reg-font: var(--font-plus-jakarta-sans, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    --reg-bg: #f8fafc;
    --reg-input-bg: #edf2f7;
    --reg-text-dark: #0f1e36;
    --reg-text-muted: #64748b;
    --reg-gold-1: var(--swam-gold-400, #f7d67f);
    --reg-gold-2: var(--swam-gold-600, #ddaf4f);
}

.reg-page-shell {
    background-color: var(--reg-bg);
    min-height: calc(100vh - 120px);
    padding: 70px 0 110px;
    font-family: var(--reg-font);
    color: var(--reg-text-dark);
}

.reg-left-column {
    position: sticky;
    top: 100px;
    padding-right: 30px;
}

.reg-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--reg-text-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.reg-back-link:hover {
    color: #b8861b;
}

.reg-main-title {
    font-size: 40px;
    font-weight: 200;
    line-height: 1.15;
    color: var(--reg-text-dark);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    font-family: var(--reg-font);
}

.reg-notice-text {
    color: var(--reg-text-muted);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 30px;
    max-width: 360px;
}

/* OCR Card */
.reg-ocr-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.reg-ocr-badge {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: var(--swam-gold-gradient, linear-gradient(135deg, #f7d67f 0%, #ddaf4f 100%));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 20px;
}

.reg-ocr-btn {
    background: #0f1e36;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    padding: 8px 18px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.reg-ocr-btn:hover {
    background: #1e3a5f;
    color: #ffffff;
}

/* Form Sections */
.reg-form-card {}

.reg-section-header {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--reg-text-dark);
    margin-bottom: 20px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reg-divider {
    height: 1px;
    background-color: #edf2f7;
    margin: 28px 0 24px;
    border: none;
}

/* Form Controls */
.reg-form-group {
    margin-bottom: 18px;
}

.reg-form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--reg-text-dark);
    margin-bottom: 7px;
}

.reg-form-control {
    width: 100%;
    height: 48px;
    background-color: var(--reg-input-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--reg-text-dark);
    font-family: var(--reg-font);
    transition: all 0.2s ease;
    box-shadow: none;
}

textarea.reg-form-control {
    height: auto;
    min-height: 80px;
    resize: vertical;
}

.reg-form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.reg-form-control:focus {
    background-color: #ffffff;
    border-color: var(--reg-gold-1);
    box-shadow: 0 0 0 3px rgba(247, 214, 127, 0.28);
    outline: none;
    color: var(--reg-text-dark);
}

.reg-form-control.is-invalid {
    background-color: #fff5f5 !important;
    border-color: #ef4444 !important;
}

.reg-form-hint {
    font-size: 11.5px;
    color: var(--reg-text-muted);
    margin-top: 5px;
    line-height: 1.45;
    display: block;
}

.reg-form-hint a {
    color: #0f1e36;
    font-weight: 600;
    text-decoration: underline;
}

/* Password Wrapper */
.reg-password-wrapper {
    position: relative;
    width: 100%;
}

.reg-password-wrapper .reg-form-control {
    padding-right: 46px;
}

.reg-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 19px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.reg-password-toggle:hover {
    color: var(--reg-text-dark);
}

/* Checkbox */
.reg-checkbox-group .form-check-input {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    background-color: var(--reg-input-bg);
    margin-top: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reg-checkbox-group .form-check-input:checked {
    background-color: var(--reg-gold-2);
    border-color: var(--reg-gold-2);
}

.reg-checkbox-group .form-check-label {
    font-size: 13px;
    color: var(--reg-text-muted);
    line-height: 1.5;
    padding-left: 8px;
    cursor: pointer;
    user-select: none;
}

/* Submit Button */
.reg-submit-btn {
    background: linear-gradient(180deg, var(--reg-gold-1) 0%, var(--reg-gold-2) 100%);
    color: #111827;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 36px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(221, 175, 79, 0.28);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--reg-font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.reg-submit-btn:hover {
    background: var(--swam-gold-btn-hover, linear-gradient(180deg, #ffe094 0%, #e8be62 100%));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(221, 175, 79, 0.38);
    color: #000000;
}

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

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

.reg-footer-link {
    font-size: 13.5px;
    color: var(--reg-text-muted);
    margin-top: 14px;
}

.reg-footer-link a {
    color: var(--reg-text-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.reg-footer-link a:hover {
    color: #b8861b;
}

/* Select2 Theme Override */
.select2-container--default .select2-selection--single {
    background-color: var(--reg-input-bg) !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    transition: all 0.2s ease !important;
    min-height: unset !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--reg-text-dark) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: var(--reg-font) !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    background-color: #ffffff !important;
    border-color: var(--reg-gold-1) !important;
    box-shadow: 0 0 0 3px rgba(247, 214, 127, 0.28) !important;
    outline: none !important;
}

.select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    font-family: var(--reg-font) !important;
    overflow: hidden !important;
}

.invalid-feedback {
    font-size: 12px;
    margin-top: 4px;
    color: #ef4444;
    font-weight: 500;
}

@media (max-width: 991px) {
    .reg-left-column {
        position: static;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .reg-main-title {
        font-size: 32px;
    }

    .reg-notice-text {
        max-width: 100%;
    }

    .reg-form-card {
        padding: 28px 20px;
    }
}