/* auth.css — shared styling for all auth / sign-in / sign-up pages (card style) */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Public Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #f6f9fc;
    color: #0b2e4e;
}

.cu-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(28px, 5vw, 56px) 20px;
}

.cu-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #fff;
    border: 1px solid #e6ecf3;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(11, 46, 78, .10);
    padding: clamp(30px, 4vw, 44px);
}

.cu-head { text-align: center; margin-bottom: 28px; }
.cu-logo { display: flex; align-items: center; justify-content: center; text-decoration: none; margin: 0 0 18px; }
.cu-logo img { height: 34px; width: auto; display: block; }
.cu-title { font-size: clamp(22px, 3vw, 27px); font-weight: 800; letter-spacing: -.02em; color: #0b2e4e; margin: 0; text-align: center; }
.cu-sub { font-size: 15px; line-height: 1.6; color: #5a6472; margin: 8px 0 0; text-align: center; }

/* success check badge (for confirmation pages) */
.cu-check {
    width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%;
    border: 2px solid #10b981; color: #10b981;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
}

/* text fields */
.inp-wrap { margin-bottom: 14px; }
.inp {
    width: 100%;
    height: 52px;
    border: 1.5px solid #dbe2ea;
    border-radius: 11px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 15px;
    color: #0b2e4e;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.inp::placeholder { color: #9aa7b5; }
.inp:focus { border-color: #1277e1; box-shadow: 0 0 0 4px rgba(18, 119, 225, .13); }

/* multiline (contact) */
.contact-textarea { min-height: 140px; height: auto; resize: vertical; padding: 16px; line-height: 1.55; }

/* honeypot field (bot trap) — kept in DOM but hidden from real users */
.w-optional {
    position: absolute;
    left: -9999px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 0;
    pointer-events: none;
}
.w-optional .inp {
    height: 0;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: 0;
    box-shadow: none;
}

/* icon inputs (sign-in) */
.inp-icon-wrap { position: relative; }
.inp-icon-wrap .inp { padding-left: 44px; }
.inp-icon {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: #9aa7b5; font-size: 15px; pointer-events: none;
}

/* two-column name row */
.cu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* select2 — matches .inp */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single {
    height: 52px; border: 1.5px solid #dbe2ea; border-radius: 11px; background: #fff;
    display: flex; align-items: center; padding: 0 12px 0 4px; transition: border-color .15s, box-shadow .15s;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #1277e1; box-shadow: 0 0 0 4px rgba(18, 119, 225, .13);
}
.select2-container--default .select2-selection--single .select2-selection__rendered { color: #0b2e4e; font-size: 15px; line-height: 1.4; padding: 0 12px; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: #9aa7b5; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 50px; right: 8px; }
.select2-container--default .select2-selection--single.field-invalid,
.select2-container--default .select2-selection--multiple.field-invalid { border-color: #dc3545 !important; }
.select2-dropdown { border: 1px solid #e6ecf3; border-radius: 12px; box-shadow: 0 16px 40px rgba(11, 46, 78, .16); overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: #1277e1; }
.select2-search--dropdown .select2-search__field { border: 1.5px solid #dbe2ea; border-radius: 8px; padding: 8px 10px; }

/* custom checkbox */
.custom-check { position: relative; display: inline-flex; width: 20px; height: 20px; flex: none; cursor: pointer; }
.custom-check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.custom-check .checkmark { width: 20px; height: 20px; border: 1.5px solid #cdd6e0; border-radius: 6px; background: #fff; display: inline-block; position: relative; transition: background .15s, border-color .15s; }
.custom-check input:checked ~ .checkmark { background: #1277e1; border-color: #1277e1; }
.custom-check .checkmark:after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; transition: opacity .15s; }
.custom-check input:checked ~ .checkmark:after { opacity: 1; }
.cu-terms { display: flex; align-items: center; gap: 11px; }
.cu-terms > span { font-size: 14.5px; color: #5a6472; }
.cu-terms a { color: #1277e1; font-weight: 700; text-decoration: none; }
.cu-terms a:hover { text-decoration: underline; }

/* errors */
.field-error { display: none; color: #dc3545; font-size: 12px; line-height: 1.3; margin-top: 4px; }
.field-error.show { display: block; }
.field-invalid { border-color: #dc3545 !important; }
.field-error-list { display: none; margin-top: 4px; }
.field-error-list.show { display: block; }
.field-error-list div { color: #dc3545; font-size: 12px; line-height: 1.35; margin-top: 2px; }
.checkbox-error-wrap { padding-left: 32px; margin-top: 4px; }
.server-message { margin-bottom: 16px; color: #dc3545; font-size: 13px; line-height: 1.4; }
.text-danger { color: #dc3545; }

/* button */
.button {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 11px;
    background: #1277e1;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    transition: background .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 12px 26px rgba(18, 119, 225, .28);
}
.button:hover { background: #0f66c3; color: #fff; box-shadow: 0 16px 32px rgba(18, 119, 225, .34); }
.button:active { transform: translateY(1px); }
.button.full { width: 100%; }

/* inline auto-width button (thank-you / confirmation pages) */
.cu-btn {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 54px;
    padding: 0 28px;
    margin: 28px auto 0;
    border: none;
    border-radius: 11px;
    background: #1277e1;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 12px 26px rgba(18, 119, 225, .28);
}
.cu-btn:hover { background: #0f66c3; color: #fff; box-shadow: 0 16px 32px rgba(18, 119, 225, .34); }
.cu-btn:active { transform: translateY(1px); }

/* secondary button variants */
.button.white,
.button.bdr-grey {
    background: #fff;
    box-shadow: none;
}
.button.white { color: #1277e1; border: 1.5px solid #1277e1; }
.button.white:hover { background: #1277e1; color: #fff; }
.button.bdr-grey { color: #5a6472; border: 1.5px solid #dbe2ea; }
.button.bdr-grey:hover { background: #f2f5f9; color: #0b2e4e; }

/* footer links */
.cu-foot { text-align: center; margin-top: 6px; }
.cu-foot p { font-size: 14.5px; color: #5a6472; margin: 0; }
.cu-foot a { color: #1277e1; font-weight: 700; text-decoration: none; }
.cu-foot a:hover { text-decoration: underline; }

@media (max-width: 480px) { .cu-row { grid-template-columns: 1fr; } }
