/* V2 premium auth (login / register) — public chrome, no Bootstrap card chrome */

.v2-auth {
    --v2-auth-ink: #1E242E;
    --v2-auth-muted: #6B7280;
    --v2-auth-border: #EBECEE;
    --v2-auth-surface: #ffffff;
    --v2-auth-canvas: #F6F7F9;
    --v2-auth-brand: #e20246;
    --v2-auth-brand-hover: #c4013c;
    --v2-auth-input: #F8F9FB;
    --v2-auth-shadow: 0 18px 50px rgba(15, 17, 21, 0.08), 0 2px 8px rgba(15, 17, 21, 0.04);
}

html[data-theme="dark"] .v2-auth {
    --v2-auth-ink: #F3F4F6;
    --v2-auth-muted: #A1A1AA;
    --v2-auth-border: #2A2C34;
    --v2-auth-surface: #181A20;
    --v2-auth-canvas: #111111;
    --v2-auth-input: #1E2028;
    --v2-auth-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.v2-auth__stage {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(226, 2, 70, 0.08), transparent 60%),
        radial-gradient(700px 380px at 100% 0%, rgba(30, 36, 46, 0.06), transparent 55%),
        var(--v2-auth-canvas);
}

html[data-theme="dark"] .v2-auth__stage {
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(226, 2, 70, 0.14), transparent 60%),
        radial-gradient(700px 380px at 100% 0%, rgba(255, 255, 255, 0.03), transparent 55%),
        var(--v2-auth-canvas);
}

.v2-auth__grid {
    display: grid;
    gap: 2rem;
    align-items: stretch;
    max-width: 1080px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .v2-auth__grid {
        grid-template-columns: 1fr 1.05fr;
        gap: 2.5rem;
        min-height: 560px;
    }
}

.v2-auth__brand {
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid var(--v2-auth-border);
    background: #111111;
    min-height: 420px;
    padding: 2rem;
    color: #F3F4F6;
}

@media (min-width: 1024px) {
    .v2-auth__brand {
        display: flex;
    }
}

.v2-auth__brand-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.v2-auth__brand-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.v2-auth__brand-photo--single {
    border-radius: 0;
}

.v2-auth__brand-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.15) 0%, rgba(17, 17, 17, 0.55) 48%, rgba(17, 17, 17, 0.92) 100%);
}

.v2-auth__brand-body {
    position: relative;
    z-index: 1;
}

.v2-auth__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 1.75rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #F3F4F6;
}

.v2-auth__brand-title {
    margin: 1rem 0 0.75rem;
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.v2-auth__brand-copy {
    margin: 0;
    max-width: 28rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(243, 244, 246, 0.78);
}

.v2-auth__card,
.v2-auth .v2-auth__card.login-wrapper {
    background: var(--v2-auth-surface) !important;
    border: 1px solid var(--v2-auth-border) !important;
    border-radius: 1.25rem !important;
    box-shadow: var(--v2-auth-shadow) !important;
    padding: 1.75rem 1.5rem !important;
}

@media (min-width: 640px) {
    .v2-auth__card,
    .v2-auth .v2-auth__card.login-wrapper {
        padding: 2.25rem 2rem !important;
    }
}

.v2-auth__title {
    margin: 0;
    font-size: 1.625rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--v2-auth-ink);
}

.v2-auth__subtitle {
    margin: 0.5rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--v2-auth-muted);
}

.v2-auth__field {
    margin-top: 1.15rem;
}

.v2-auth__label,
.v2-auth .v2-auth__label.label-title {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--v2-auth-ink) !important;
}

.v2-auth__input,
.v2-auth .v2-auth__field .form--control,
.v2-auth .form--control.v2-auth__input {
    width: 100% !important;
    height: 3rem !important;
    border-radius: 0.75rem !important;
    border: 1px solid var(--v2-auth-border) !important;
    background: var(--v2-auth-input) !important;
    color: var(--v2-auth-ink) !important;
    padding: 0 0.95rem !important;
    font-size: 0.9375rem !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.v2-auth__input::placeholder,
.v2-auth .form--control.v2-auth__input::placeholder {
    color: var(--v2-auth-muted) !important;
    opacity: 1;
}

.v2-auth__input:focus,
.v2-auth .v2-auth__field .form--control:focus,
.v2-auth .form--control.v2-auth__input:focus {
    outline: none !important;
    border-color: #D0D5DD !important;
    box-shadow: none !important;
    background: var(--v2-auth-surface) !important;
}

.v2-auth__remember,
.v2-auth .v2-auth__remember .checkbox-label {
    color: var(--v2-auth-ink) !important;
}

.v2-auth__signup,
.v2-auth .v2-auth__signup.account {
    color: var(--v2-auth-muted) !important;
}

.v2-auth__password {
    position: relative;
}

.v2-auth__password .form--control {
    padding-right: 2.75rem;
}

.v2-auth__password .toggle-password {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--v2-auth-muted);
    z-index: 2;
}

.v2-auth__password .toggle-password .hide-icon {
    display: none;
}

.v2-auth__password .toggle-password.show-pass .show-icon {
    display: none;
}

.v2-auth__password .toggle-password.show-pass .hide-icon {
    display: block;
}

.v2-auth__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3rem;
    margin-top: 1.35rem;
    border: 0;
    border-radius: 0.75rem;
    background: var(--v2-auth-brand);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(226, 2, 70, 0.22);
}

.v2-auth__submit:hover {
    background: var(--v2-auth-brand-hover);
    transform: translateY(-1px);
}

.v2-auth__submit:active {
    transform: translateY(0);
}

.v2-auth__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.v2-auth__remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--v2-auth-ink);
    cursor: pointer;
    user-select: none;
}

.v2-auth__remember input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--v2-auth-brand);
}

.v2-auth__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--v2-auth-brand);
    text-decoration: none;
}

.v2-auth__link:hover {
    text-decoration: underline;
}

.v2-auth__signup {
    margin-top: 1.15rem;
    font-size: 0.875rem;
    color: var(--v2-auth-muted);
    text-align: center;
}

.v2-auth__divider,
.v2-auth .or-contents.v2-auth__divider {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
    color: var(--v2-auth-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    z-index: 1;
}

.v2-auth__divider::before,
.v2-auth__divider::after,
.v2-auth .or-contents.v2-auth__divider::before {
    content: "" !important;
    flex: 1;
    height: 1px !important;
    width: auto !important;
    background: var(--v2-auth-border) !important;
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
}

.v2-auth .v2-auth__divider .or-contents-para {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--v2-auth-muted) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em;
    line-height: 1 !important;
    white-space: nowrap;
}

.v2-auth__social,
.v2-auth .login-others.v2-auth__social {
    display: grid !important;
    gap: 0.65rem;
    grid-template-columns: 1fr;
}

@media (min-width: 480px) {
    .v2-auth__social,
    .v2-auth .login-others.v2-auth__social {
        grid-template-columns: 1fr 1fr;
    }
}

.v2-auth .login-others-single,
.v2-auth .login-others-single:not(:last-child) {
    width: 100% !important;
    margin: 0 !important;
}

.v2-auth__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    height: 2.75rem;
    padding: 0 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid var(--v2-auth-border);
    background: var(--v2-auth-surface);
    color: var(--v2-auth-ink);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.v2-auth__social-btn:hover {
    background: var(--v2-auth-input);
    border-color: #D5D8DE;
    color: var(--v2-auth-ink);
    text-decoration: none;
}

html[data-theme="dark"] .v2-auth__social-btn:hover {
    border-color: #3F4450;
}

.v2-auth .error-message .alert,
.v2-auth .alert {
    border-radius: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Role modal — keep Bootstrap structure, premium surface */
.v2-auth-modal .modal-content {
    border: 1px solid var(--v2-auth-border, #EBECEE);
    border-radius: 1.25rem;
    box-shadow: var(--v2-auth-shadow);
}

html[data-theme="dark"] .v2-auth-modal .modal-content {
    background: #181A20;
    border-color: #2A2C34;
    color: #F3F4F6;
}

.v2-auth-modal .choose-account-single {
    border: 1px solid #EBECEE;
    border-radius: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="dark"] .v2-auth-modal .choose-account-single {
    border-color: #2A2C34;
    background: #1E2028;
}

.v2-auth-modal .choose-account-single.active,
.v2-auth-modal .choose-account-single:hover {
    border-color: #D0D5DD;
    box-shadow: none;
}

.v2-auth-modal #confirmSocialRole {
    height: 3rem;
    border: 0;
    border-radius: 0.75rem;
    background: #e20246;
    font-weight: 600;
}

.v2-auth-modal #confirmSocialRole:hover {
    background: #c4013c;
}

/* Keep inner legacy wrappers flat — card chrome lives on .v2-auth__card */
.v2-auth .login-wrapper-contents {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.v2-auth .login-wrapper-contents-title {
    margin: 0;
}

.v2-auth .submit-btn.v2-auth__submit {
    border: 0 !important;
    background: var(--v2-auth-brand) !important;
    color: #fff !important;
    border-radius: 0.75rem !important;
    height: 3rem !important;
    box-shadow: 0 8px 20px rgba(226, 2, 70, 0.22) !important;
}

.v2-auth .login-others-single-btn.v2-auth__social-btn {
    background: var(--v2-auth-surface) !important;
    border: 1px solid var(--v2-auth-border) !important;
    color: var(--v2-auth-ink) !important;
    border-radius: 0.75rem !important;
    height: 2.75rem !important;
    box-shadow: none !important;
}

/* ── Register: role pick + form layout ── */

.v2-auth__register-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--v2-auth-surface);
    border: 1px solid var(--v2-auth-border);
    border-radius: 1.25rem;
    box-shadow: var(--v2-auth-shadow);
    padding: 1.75rem 1.5rem;
    text-align: center;
}

@media (min-width: 640px) {
    .v2-auth__register-card {
        padding: 2.25rem 2rem;
    }
}

.v2-auth .choose-account-title,
.v2-auth__register-card .v2-auth__title {
    margin: 0;
    font-size: 1.625rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--v2-auth-ink) !important;
}

.v2-auth .choose-account-para,
.v2-auth__register-card .v2-auth__subtitle {
    margin: 0.5rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--v2-auth-muted) !important;
}

.v2-auth .choose-account-flex {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1.5rem !important;
}

@media (min-width: 560px) {
    .v2-auth .choose-account-flex {
        grid-template-columns: 1fr 1fr;
    }
}

.v2-auth .choose-account-single {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    text-align: left;
    margin: 0 !important;
    padding: 1.15rem 1.1rem !important;
    border-radius: 1rem !important;
    border: 1.5px solid var(--v2-auth-border) !important;
    background: var(--v2-auth-surface) !important;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.v2-auth .choose-account-single:hover {
    border-color: #D5D8DE !important;
}

.v2-auth .choose-account-single.selected {
    /* Selection = radio check only — no thick brand border / ring */
    border-color: var(--v2-auth-border) !important;
    background: var(--v2-auth-input) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .v2-auth .choose-account-single.selected {
    background: #1E2028 !important;
    border-color: var(--v2-auth-border) !important;
}

.v2-auth .choose-account-single-thumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.v2-auth .choose-account-single-thumb svg {
    width: 28px;
    height: 28px;
    color: var(--v2-auth-ink);
}

.v2-auth .choose-account-single.selected .choose-account-single-thumb svg,
.v2-auth .choose-account-single.selected .choose-account-single-thumb svg path {
    color: var(--v2-auth-brand) !important;
    fill: none !important;
    stroke: currentColor;
}

.v2-auth .choose-account-single-thumb .rounded-select {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    border: 1.5px solid var(--v2-auth-border);
    background: transparent;
    position: relative;
    flex-shrink: 0;
}

.v2-auth .choose-account-single.selected .rounded-select {
    border-color: var(--v2-auth-brand);
    background: var(--v2-auth-brand);
}

.v2-auth .choose-account-single.selected .rounded-select::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    background: #fff;
    clip-path: polygon(14% 44%, 0 65%, 46% 100%, 100% 16%, 80% 0, 43% 62%);
}

.v2-auth .choose-account-single-contents {
    margin: 0 !important;
}

.v2-auth .choose-account-single-contents-title {
    margin: 0 !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: var(--v2-auth-ink) !important;
}

.v2-auth .choose-account-single.selected .choose-account-single-contents-title {
    color: var(--v2-auth-ink) !important;
}

.v2-auth .continue_to_info,
.v2-auth .inf-cmn-btn.continue_to_info {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3rem;
    margin-top: 0.25rem;
    border: 0 !important;
    border-radius: 0.75rem !important;
    background: var(--v2-auth-brand) !important;
    color: #fff !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(226, 2, 70, 0.22);
    transition: background 0.2s ease, transform 0.15s ease;
}

.v2-auth .continue_to_info:hover {
    background: var(--v2-auth-brand-hover) !important;
    transform: translateY(-1px);
}

.v2-auth__signup-row,
.v2-auth .v2-auth__signup-row.black_text,
.v2-auth .v2-auth__signup-row.fw_medium {
    margin-top: 1.15rem;
    font-size: 0.875rem;
    color: var(--v2-auth-muted) !important;
}

.v2-auth__signup-row a,
.v2-auth .v2-auth__signup-row .primary_text,
.v2-auth .primary_text {
    color: var(--v2-auth-brand) !important;
    font-weight: 600;
    text-decoration: none;
}

.v2-auth__signup-row a:hover {
    text-decoration: underline;
}

.v2-auth .input-flex-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 1rem;
}

@media (min-width: 560px) {
    .v2-auth .input-flex-item {
        grid-template-columns: 1fr 1fr;
    }
}

.v2-auth .input-flex-item .single-input {
    margin-top: 1.15rem !important;
}

.v2-auth .single-input {
    margin-top: 1.15rem;
}

.v2-auth .single-input .label-title {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--v2-auth-ink) !important;
}

.v2-auth .single-input .form--control {
    width: 100% !important;
    height: 3rem !important;
    border-radius: 0.75rem !important;
    border: 1px solid var(--v2-auth-border) !important;
    background: var(--v2-auth-input) !important;
    color: var(--v2-auth-ink) !important;
    padding: 0 0.95rem !important;
    font-size: 0.9375rem !important;
    box-shadow: none !important;
}

.v2-auth .single-input .form--control:focus {
    outline: none !important;
    border-color: #D0D5DD !important;
    box-shadow: none !important;
    background: var(--v2-auth-surface) !important;
}

.v2-auth .single-input-inner {
    position: relative;
}

.v2-auth .single-input-inner .form--control {
    padding-right: 2.75rem !important;
}

.v2-auth .single-input-inner .toggle-password {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--v2-auth-muted);
    z-index: 2;
}

.v2-auth .form-check-label,
.v2-auth .account.color-light {
    color: var(--v2-auth-muted) !important;
    font-size: 0.875rem;
}

.v2-auth .form-check-label a {
    color: var(--v2-auth-brand) !important;
}

.v2-auth .form-check-input {
    accent-color: var(--v2-auth-brand);
    margin-right: 0.35rem;
}

.v2-auth .sign_up_now_button.submit-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100% !important;
    height: 3rem !important;
    margin-top: 1.35rem !important;
    border: 0 !important;
    border-radius: 0.75rem !important;
    background: var(--v2-auth-brand) !important;
    color: #fff !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 20px rgba(226, 2, 70, 0.22) !important;
}

.v2-auth .iti {
    width: 100%;
}

.v2-auth .iti .form--control {
    padding-left: 3.25rem !important;
}

.v2-auth .login-wrapper.v2-auth__card {
    background: var(--v2-auth-surface) !important;
    border: 1px solid var(--v2-auth-border) !important;
    border-radius: 1.25rem !important;
    box-shadow: var(--v2-auth-shadow) !important;
    padding: 1.75rem 1.5rem !important;
}

@media (min-width: 640px) {
    .v2-auth .login-wrapper.v2-auth__card {
        padding: 2.25rem 2rem !important;
    }
}

.v2-auth .started-wrapper {
    display: none;
}

@media (min-width: 1024px) {
    .v2-auth .started-wrapper {
        display: block;
    }
}

/* Email / phone verification gate: one centred card, no brand panel */

.v2-auth__grid--single {
    grid-template-columns: 1fr;
    min-height: 0;
    max-width: 30rem;
}

.v2-auth__verify-card {
    animation: v2-auth-rise 0.5s ease-out both;
}

@keyframes v2-auth-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v2-auth__verify-card {
        animation: none;
    }
}

.v2-auth__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    border-radius: 0.9rem;
    border: 1px solid var(--v2-auth-border);
    background: var(--v2-auth-input);
    color: var(--v2-auth-ink);
}

.v2-auth__verify-form {
    margin: 0;
}

.v2-auth__verify-form .v2-auth__submit {
    margin-top: 1.25rem;
}

.v2-auth__resend {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.v2-auth__divider-line {
    margin: 1.75rem 0 1.5rem;
    border-top: 1px solid var(--v2-auth-border);
}
