/* REG24 customer login/account pages - split-screen design.
   Colours/spacing/type match the design_handoff_reg24_login spec exactly. */

*, *::before, *::after {
    box-sizing: border-box;
}

/* Small utility classes used on these pages - Bootstrap CSS isn't loaded here
   on purpose, so these are defined directly to avoid pulling in the full
   Bootstrap reset just for 3 classes. */
.text-center { text-align: center; }
.text-danger { color: #d9534f; }
.mb-3 { margin-bottom: 1rem; }

:root {
    --charcoal: #343433;
    --panel: #2b2b2a;
    --accent: #45a8de;
    --accent-dk: #2f8fc7;
    --ink: #343433;
    --muted: #7a7a77;
    --label: #5c5c5a;
    --line: #dcdcd7;
}

body.auth-body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--ink);
}

.split {
    display: flex;
    min-height: 100vh;
}

/* Brand panel */
.brand {
    position: relative;
    flex: 0 0 46%;
    background: var(--panel);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 44px;
    overflow: hidden;
}

.brand .sphere {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%);
}

.brand img {
    position: relative;
    width: 216px;
    height: auto;
}

.brand .copy {
    position: relative;
}

.brand .copy-center {
    text-align: center;
}

.brand .est {
    position: relative;
    font-size: 11.5px;
    color: rgba(255,255,255,.7);
    letter-spacing: .03em;
}

.brand h1 {
    font-size: 30px;
    line-height: 1.18;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.01em;
    margin: 0;
}

.brand h1 span {
    color: var(--accent);
}

.brand p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,.6);
    margin-top: 16px;
    max-width: 300px;
}

/* Form panel */
.form-wrap {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.form {
    width: 340px;
}

.form h2 {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0;
}

.form .sub {
    font-size: 14px;
    color: var(--muted);
    margin-top: 7px;
    margin-bottom: 28px;
}

.fields {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.fld {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

label.lbl {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--label);
    text-transform: uppercase;
}

.auth-input {
    height: 46px;
    border: 1.5px solid var(--line);
    border-radius: 7px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    outline: none;
    font-family: inherit;
    width: 100%;
}

.auth-input::placeholder {
    color: #a9a9a4;
}

.auth-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(69,168,222,.15);
}

.pwd-wrap {
    position: relative;
}

.pwd-wrap .auth-input {
    padding-right: 46px;
}

.pwd-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 46px;
    height: 46px;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 7px 7px 0;
    font-size: 18px;
}

.pwd-toggle:hover {
    color: var(--ink);
    background: rgba(0,0,0,.04);
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: var(--label);
    cursor: pointer;
}

.remember input {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
}

a.lnk {
    color: var(--accent-dk);
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
}

a.lnk:hover {
    text-decoration: underline;
}

button.submit {
    height: 50px;
    width: 100%;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    margin-top: 6px;
    box-shadow: 0 6px 16px rgba(69,168,222,.32);
    transition: background .15s, box-shadow .15s;
}

button.submit:hover {
    background: #3a9fd4;
    box-shadow: 0 8px 20px rgba(69,168,222,.4);
}

button.submit:disabled {
    opacity: .65;
    cursor: default;
    box-shadow: none;
}

.foot {
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 24px;
}

/* OTP / password tab switcher */
.auth-tabs {
    display: inline-flex;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.auth-tabs button {
    border: 0;
    background: transparent;
    padding: 9px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--muted);
    font-family: inherit;
    cursor: pointer;
}

.auth-tabs button.active {
    background: #fff;
    color: var(--accent-dk);
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.otp-note {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 17px;
    line-height: 1.5;
}

.otp-code-input {
    letter-spacing: .5em;
    font-weight: 700;
    text-align: center;
    font-size: 20px !important;
}

.resend-row {
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
    margin-top: 14px;
}

.validation-summary-errors {
    background: #fdecea;
    border: 1px solid #f1948a;
    border-left: 4px solid #d9534f;
    border-radius: 6px;
    padding: 12px 16px;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.validation-summary-errors li {
    color: #a02622;
    font-size: 13.5px;
    font-weight: 600;
}

.field-validation-error {
    color: #d9534f;
    font-weight: 600;
    font-size: 12.5px;
}

@media (max-width: 820px) {
    .split { flex-direction: column; }
    .brand { display: none; }
}

/* Secondary account pages (register, password reset, confirmations) -
   same form styling, no split brand panel, just centred on white. */
.center-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    /*padding: 40px 20px;*/
}

.center-wrap .form {
    width: 100%;
    max-width: 380px;
}

.status-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
    color: #fff;
}

.status-icon.ok { background: var(--accent); }
.status-icon.err { background: #d9534f; }
