/* RV Traders public authentication pages - aligned with the supplied desktop/mobile reference */
.rv-auth-scene,
.rv-register-only {
    --auth-gold: #ffc43d;
    --auth-gold-2: #ff9f18;
    --auth-blue: #4bcfff;
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: min(850px, calc(100vh - 92px));
    padding: clamp(38px, 5vw, 70px) 16px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 4%, rgba(39, 125, 211, .20), transparent 44%),
        radial-gradient(ellipse at 100% 92%, rgba(255, 196, 61, .07), transparent 32%),
        #050a13;
}
.rv-auth-scene::before,
.rv-register-only::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(rgba(81,159,216,.045) 1px,transparent 1px), linear-gradient(90deg,rgba(81,159,216,.045) 1px,transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center,#000 0%,transparent 76%);
    mask-image: radial-gradient(ellipse at center,#000 0%,transparent 76%);
    content: "";
    pointer-events: none;
}
.rv-auth-scene::after,
.rv-register-only::after {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: min(740px, 94vw);
    aspect-ratio: 1;
    border: 1px solid rgba(75,207,255,.09);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(75,207,255,.018), 0 0 0 92px rgba(255,196,61,.012), inset 0 0 70px rgba(40,133,202,.035);
    transform: translate(-50%,-50%);
    content: "";
    pointer-events: none;
    animation: rv-auth-halo 24s linear infinite;
}
.rv-auth-stack,
.rv-register-stack { position: relative; z-index: 1; width: min(100%, 660px); }
.rv-auth-login .rv-auth-stack { width: min(100%, 490px); }
.rv-auth-card,
.rv-register-card {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: clamp(25px, 4vw, 39px);
    overflow: hidden;
    border: 1px solid rgba(124,174,217,.25);
    border-radius: 24px;
    background: linear-gradient(148deg,rgba(16,29,46,.97),rgba(6,13,23,.985));
    box-shadow: 0 32px 100px rgba(0,0,0,.42), 0 0 68px rgba(31,134,220,.08), inset 0 1px 0 rgba(255,255,255,.035);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    animation: rv-auth-arrive .65s cubic-bezier(.2,.8,.2,1) both;
}
.rv-auth-card::before,
.rv-register-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 145px;
    height: 2px;
    background: linear-gradient(90deg,var(--auth-gold),var(--auth-blue),transparent);
    content: "";
}
.rv-auth-card::after,
.rv-register-card::after {
    position: absolute;
    top: -80px;
    right: -90px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(41,151,236,.10);
    filter: blur(28px);
    content: "";
    pointer-events: none;
}
.rv-auth-card-inner,
.rv-register-card-inner { position: relative; z-index: 1; }
.rv-auth-mark,
.rv-register-mark {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border: 1px solid rgba(255,196,61,.38);
    border-radius: 17px;
    color: var(--auth-gold);
    background: linear-gradient(145deg,rgba(255,196,61,.13),rgba(75,207,255,.08));
    box-shadow: 0 12px 35px rgba(0,0,0,.2), inset 0 0 24px rgba(255,196,61,.04);
    font-size: 25px;
}
.rv-auth-mark svg,
.rv-register-mark svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rv-auth-heading,
.rv-register-heading {
    margin: 0 0 18px;
    color: #f7faff;
    font-family: Manrope, "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: clamp(32px, 5vw, 41px);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1.14;
}
.rv-auth-intro { margin: 0 0 25px; color: #aebed0; font-size: 15px; line-height: 1.7; }
.rv-auth-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 15px; }
.rv-auth-field { min-width: 0; }
.rv-auth-field-full { grid-column: 1 / -1; }
.rv-auth-label { display: block; margin: 0 0 8px; color: #eef5fd; font-size: 14px; font-weight: 800; line-height: 1.45; }
.rv-auth-required { color: var(--auth-gold); }
.rv-auth-input-wrap { position: relative; }
.rv-auth-field-icon { position: absolute; top: 50%; left: 14px; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: #83a4c2; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.rv-auth-input,
.rv-auth-input-wrap input[type="text"],
.rv-auth-input-wrap input[type="email"],
.rv-auth-input-wrap input[type="password"],
.rv-auth-input-wrap input[type="tel"] {
    display: block;
    width: 100%;
    min-width: 0;
    height: 53px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 44px 0 43px;
    border: 1px solid rgba(111,157,197,.34);
    border-radius: 11px;
    outline: none;
    color: #f6f9ff;
    background: rgba(4,10,18,.72);
    font-family: inherit;
    font-size: 15px;
    line-height: normal;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.rv-auth-input::placeholder,
.rv-auth-input-wrap input::placeholder { color: #788ca2; opacity: 1; }
.rv-auth-input:focus,
.rv-auth-input-wrap input:focus { border-color: var(--auth-gold); background: rgba(5,12,22,.96); box-shadow: 0 0 0 4px rgba(255,196,61,.09), 0 0 25px rgba(75,207,255,.055); }
.rv-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #91a8be;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}
.rv-auth-password-toggle:hover { color: var(--auth-gold); background: rgba(255,255,255,.045); }
.rv-auth-password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rv-auth-terms { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 19px; color: #b9c8d8; font-size: 13px; line-height: 1.65; }
.rv-auth-terms > span { display: flex; align-items: flex-start; gap: 10px; }
.rv-auth-terms input[type="checkbox"] { flex: 0 0 auto; width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--auth-gold); }
.rv-auth-terms label { margin: 0; color: inherit; font-size: inherit; font-weight: 500; line-height: inherit; cursor: pointer; }
.rv-auth-submit,
.rv-auth-submit input,
input.rv-auth-submit {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    overflow: hidden;
    padding: 14px 20px;
    border: 0;
    border-radius: 11px;
    color: #08111b;
    background: linear-gradient(105deg,#ffe394 0%,#ffc23d 50%,#ff9f18 100%);
    box-shadow: 0 13px 30px rgba(255,174,30,.18);
    font-family: Manrope, "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 900;
    text-align: center;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.rv-auth-submit:hover,
input.rv-auth-submit:hover { transform: translateY(-2px); box-shadow: 0 17px 38px rgba(255,174,30,.26); filter: saturate(1.05); }
.rv-auth-message,
.rv-message { position: relative; z-index: 3; display: block; margin: 0 0 16px; padding: 12px 15px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.rv-auth-message:empty,
.rv-message:empty { display: none; }
.rv-auth-message.error,
.rv-message.error { border-color: rgba(255,125,125,.3); color: #ffbaba; background: rgba(131,33,44,.17); }
.rv-auth-message.success,
.rv-message.success { border-color: rgba(69,209,143,.3); color: #a7f3cd; background: rgba(27,119,76,.16); }
.rv-auth-bottom { display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; margin: 24px 0 0; color: #aebed0; text-align: center; font-size: 14px; line-height: 1.7; }
.rv-auth-bottom a,
.rv-register-signin a { color: var(--auth-gold); font-weight: 800; text-decoration: none; }
.rv-auth-bottom a:hover,
.rv-register-signin a:hover { color: #fff0bd; text-decoration: underline; }
.rv-register-signin { display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; margin: 24px 0 0; color: #aebed0; text-align: center; font-size: 14px; line-height: 1.7; }
.rv-auth-login .rv-auth-heading { margin-bottom: 14px; }
.rv-auth-login .rv-auth-intro { margin-bottom: 25px; }
.rv-auth-login .rv-auth-field + .rv-auth-field { margin-top: 17px; }
.rv-auth-help-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 21px; color: #aebed0; font-size: 13px; line-height: 1.5; }
.rv-auth-help-row a { color: var(--auth-blue); font-weight: 800; white-space: nowrap; }
.rv-auth-new-member { display: flex; align-items: center; gap: 13px; margin: 22px 0 10px; color: #73869a; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; justify-content: center; }
.rv-auth-new-member::before,
.rv-auth-new-member::after { content: ""; height: 1px; flex: 1; background: rgba(129,169,209,.18); }
.rv-auth-card .rv-page-subtitle { margin: 12px 0 0; color: #aebed0; font-size: 15px; line-height: 1.7; }
.rv-auth-card .rv-btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 11px 17px; border: 1px solid rgba(255,194,61,.38); border-radius: 10px; color: #08111b; background: linear-gradient(105deg,#ffe394,#ff9f18); font-size: 14px; font-weight: 850; text-decoration: none; cursor: pointer; }
.rv-auth-card .rv-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 25px rgba(255,174,30,.16); }
.rv-auth-card .rv-btn.rv-btn-blue { border-color: rgba(75,207,255,.38); color: #e9f8ff; background: linear-gradient(105deg,rgba(35,151,215,.28),rgba(15,62,104,.5)); }
.rv-auth-card .rv-btn.rv-btn-soft { border-color: rgba(129,169,209,.26); color: #d9e7f6; background: rgba(12,26,42,.9); }
.rv-auth-card .rv-panel { padding: 18px; margin-top: 22px; border: 1px solid rgba(111,157,197,.22); border-radius: 13px; background: rgba(4,10,18,.50); }
.rv-copybox { display: flex; align-items: stretch; gap: 9px; }
.rv-copybox .rv-input { flex: 1; min-width: 0; }
.rv-copybox button { flex: 0 0 auto; }
.rv-auth-card .rv-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.rv-auth-card .rv-note { margin: 17px 0 0; color: #9eafc2; font-size: 12px; line-height: 1.7; }
@keyframes rv-auth-arrive { from { opacity: 0; transform: translateY(18px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes rv-auth-halo { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
@media (max-width: 600px) {
    .rv-auth-scene,
    .rv-register-only { min-height: auto; padding: 38px 13px 48px; }
    .rv-auth-card,
    .rv-register-card { padding: 25px 20px 23px; border-radius: 20px; }
    .rv-auth-form-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
    .rv-auth-field-full { grid-column: auto; }
    .rv-auth-heading,
    .rv-register-heading { margin-bottom: 22px; }
    .rv-copybox { align-items: stretch; flex-direction: column; }
    .rv-copybox button { align-self: flex-start; }
    .rv-auth-card .rv-btn-row { flex-direction: column; }
    .rv-auth-card .rv-btn-row .rv-btn { width: 100%; }
    .rv-auth-help-row { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .rv-auth-scene::after,
    .rv-register-only::after,
    .rv-auth-card,
    .rv-register-card { animation: none !important; }
    .rv-auth-input,
    .rv-auth-input-wrap input,
    .rv-auth-submit { transition: none !important; }
}
