﻿/* ================================================================
   Registration.aspx — Page-Specific Styles
   Extracted from inline <style> block (~426 lines).
   Registration form layout, tree view, and responsive adjustments.
   ================================================================ */

/* ── Layout ───────────────────────────────────────────── */
.reg-layout-box {
    padding: 28px 28px 22px;
    overflow-x: hidden;
}

/* Prevent horizontal scrollbar on the full page container */
#content.gray-area,
#content.gray-area .container {
    overflow-x: hidden;
    max-width: 100%;
}



/* ── Brand Logo Cluster ───────────────────────────────── */
.reg-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.reg-title-row h4 {
    margin: 0;
}

.reg-brand-logos {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reg-brand-avatars {
    display: flex;
    align-items: center;
    direction: ltr; /* keep stacking LTR always */
}

.reg-brand-avatars .reg-logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    object-fit: contain;
    padding: 3px;
    background: #fff;
    margin-left: -10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    z-index: 1;
}

.reg-brand-avatars .reg-logo-circle:first-child {
    margin-left: 0;
}

.reg-brand-avatars .reg-logo-circle:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
    z-index: 5;
}

.reg-tender-wordmark {
    height: 22px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.reg-tender-wordmark:hover {
    opacity: 1;
}

/* ── Two-Column Layout ────────────────────────────────── */
.reg-two-col {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-left: -15px;
    margin-right: -15px;
}

.reg-col-left,
.reg-col-right {
    margin-bottom: 20px;
}

.reg-panel {
    height: 100%;
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: var(--tg-border-radius-sm, 4px);
    padding: 24px 22px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* ── Section Titles ───────────────────────────────────── */
.reg-section-title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 18px;
    font-weight: 600;
    color: var(--tg-secondary, #2e8795);
}

.reg-section-title i {
    color: var(--tg-secondary, #2e8795);
    margin-right: 8px;
    font-size: 0.9em;
}

/* ── Field Labels ─────────────────────────────────────── */
.reg-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #888;
    font-size: 14px;
}

.reg-field-label small {
    font-weight: 400;
    color: #9aa3ad;
    margin-left: 4px;
}

/* Taller text inputs across the form */
.reg-layout-box .input-text {
    padding: 12px 14px !important;
    height: auto !important;
    font-size: 14px;
}

/* ── Divider ──────────────────────────────────────────── */
.reg-divider {
    margin: 24px 0;
    border-top: 1px solid #ececec;
}

/* ── Password Toggle ──────────────────────────────────── */
.reg-pwd-wrapper {
    position: relative;
}

.reg-pwd-wrapper .input-text {
    padding-right: 42px;
}

.reg-pwd-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #7b8794;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* ── Input with Icon ──────────────────────────────────── */
.reg-layout-box .with-icon {
    display: flex;
    align-items: stretch;
}

.reg-layout-box .with-icon .input-text {
    flex: 1;
    min-width: 0;
}

.reg-layout-box .with-icon .icon {
    height: auto !important;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
}

/* ── Submit Button ────────────────────────────────────── */
.reg-submit-btn {
    height: auto !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
    font-weight: 700;
    text-align: center;
    line-height: 1.5 !important;
    transition: var(--tg-transition-base, all 0.3s ease);
}

.reg-submit-btn.btn-loading {
    pointer-events: none;
    opacity: 0.8;
    cursor: not-allowed;
}

.reg-submit-btn.btn-loading .btn-label-default {
    display: none;
}

.reg-submit-btn .btn-label-loading {
    display: none;
}

.reg-submit-btn.btn-loading .btn-label-loading {
    display: inline;
}

/* ── Tree Section ─────────────────────────────────────── */
.reg-tree-section {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.reg-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--tg-space-sm, 8px);
}

.reg-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

.reg-note-wrap {
    margin-top: 6px;
}

/* Country selector flag-only mode: dial code is shown inside textbox */
.cs-phone-group.cs-flag-only .cs-cc-code,
.cs-phone-group.cs-flag-only .cs-cc-arrow {
    display: none;
}

.cs-phone-group.cs-flag-only .cs-cc-btn {
    min-width: 44px;
    padding-inline: 8px;
}

.reg-tree-panel {
    position: relative;
}

.reg-tree-wrapper {
    border: 1px solid #e6eaf0;
    border-radius: var(--tg-border-radius-sm, 4px);
    background: #f5f5f5;
    padding: 16px;
}

.reg-tree-header {
    margin-bottom: 14px;
}

.reg-tree-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--tg-space-sm, 8px);
    margin-bottom: 12px;
}

.reg-tree-head-top h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #888;
}

.reg-tree-head-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.reg-tree-head-actions button {
    border: 1px solid #d9dee5;
    background: #fff;
    color: #888;
    border-radius: var(--tg-border-radius-sm, 4px);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tg-transition-fast, all 0.2s);
}

.reg-tree-head-actions button:hover {
    background: #f3f4f6;
    border-color: var(--tg-secondary, #2e8795);
    color: var(--tg-secondary, #2e8795);
}

.reg-tree-head-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.reg-tree-count-badge {
    display: inline-block;
    min-width: 24px;
    padding: 3px 10px;
    margin-left: 6px;
    border-radius: var(--tg-border-radius-pill, 999px);
    background: var(--tg-accent, #98ce44);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    transition: var(--tg-transition-base, all 0.3s);
}

.reg-tree-count-badge.empty {
    background: #d1d5db;
    color: #fff;
}

/* ── Search Box ───────────────────────────────────────── */
.reg-search-box {
    position: relative;
    margin-bottom: 12px;
}

.reg-search-box input {
    width: 100%;
    height: 40px;
    border: 1px solid #d9dee5;
    border-radius: var(--tg-border-radius-sm, 4px);
    padding: 0 38px 0 12px;
    background: #fff;
}

.reg-search-box .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7b8794;
}

/* ── Tree Toolbar ─────────────────────────────────────── */
.reg-tree-toolbar {
    display: flex;
    gap: var(--tg-space-sm, 8px);
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.reg-tree-toolbar button {
    border: 1px solid #d9dee5;
    background: #fff;
    color: #888;
    border-radius: var(--tg-border-radius-sm, 4px);
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
}

.reg-tree-toolbar button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tree-container {
    min-height: 420px;
    max-height: 520px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: var(--tg-border-radius-sm, 4px);
    padding: 10px;
}

.reg-tree-actions {
    display: flex;
    gap: var(--tg-space-sm, 8px);
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 14px;
}

.reg-clear-btn {
    background: #9ca3af !important;
    color: #fff !important;
    border-color: #9ca3af !important;
}

/* ── Side Notes & Help ────────────────────────────────── */
.reg-side-note {
    margin-top: 16px;
}

.reg-mini-help {
    margin-bottom: 0;
    padding: 16px;
}

.reg-mini-help h4 {
    margin-top: 0;
    margin-bottom: 8px;
}

.reg-mini-help-text {
    margin: 0;
    color: #667085;
    line-height: 1.6;
}

.reg-help-search .with-icon .icon {
    border: 0;
}

/* ── Responsive ───────────────────────────────────────── */
/* Equal-height columns */
@media (min-width: 992px) {
    .reg-two-col { align-items: stretch; }
    .reg-col-left, .reg-col-right { display: flex; flex-direction: column; }
    .reg-col-left .reg-panel, .reg-col-right .reg-tree-wrapper { flex: 1; }
}

@media (max-width: 991px) {
    .reg-layout-box {
        padding: 22px 18px 16px;
    }

    .reg-panel {
        padding: 20px 18px;
    }

    .tree-container {
        min-height: 340px;
        max-height: 420px;
    }
}

@media (max-width: 767px) {
    .reg-section-title {
        font-size: 20px;
    }

    .reg-col-right {
        margin-top: 10px;
    }

    .reg-tree-toolbar,
    .reg-tree-actions {
        flex-direction: column;
    }

    .reg-tree-toolbar button,
    .reg-tree-actions .button {
        width: 100%;
        text-align: center;
    }
}

/* ── Sign-in prompt (below error div) ──────────────────── */
.signin-prompt-wrap {
    margin-top: 4px;
}

.signin-prompt {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 10px;
    background: #fff8f3;
    border: 1px solid #f5c9a8;
    border-radius: 8px;
    font-size: 11px;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.signin-prompt-text {
    color: #7a4020;
    line-height: 1.3;
    flex: 1;
    text-align: right;
}

.signin-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-direction: row-reverse;
    padding: 4px 10px;
    background: var(--tg-primary, #f5833d);
    color: #fff !important;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

.signin-prompt-btn:hover {
    background: var(--tg-primary-hover, #e6701a);
    transform: translateY(-1px);
}

.signin-prompt-btn i {
    font-size: 10px;
}
