/* StudentMitraa registration — compact professional Guided Split */

.register-blue-welcome {
    --register-page-bg: #091426;
    --register-card-bg: #101d31;
    --register-field-bg: #0b1628;
    --register-field-border: #30445f;
    --register-shell-border: rgba(96, 165, 250, 0.22);
    --register-shell-shadow: rgba(2, 6, 23, 0.42);
    display: block !important;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text-body);
    background:
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.13), transparent 30%),
        var(--register-page-bg) !important;
}

html[data-theme="light"] .register-blue-welcome {
    --register-page-bg: #edf3f9;
    --register-card-bg: #ffffff;
    --register-field-bg: #f8fafc;
    --register-field-border: #cfd9e7;
    --register-shell-border: rgba(30, 64, 175, 0.12);
    --register-shell-shadow: rgba(15, 23, 42, 0.14);
}

html[data-theme="dark"] .register-blue-welcome {
    --register-page-bg: #091426;
    --register-card-bg: #101d31;
    --register-field-bg: #0b1628;
    --register-field-border: #30445f;
    --register-shell-border: rgba(96, 165, 250, 0.22);
    --register-shell-shadow: rgba(2, 6, 23, 0.42);
}

@media (prefers-color-scheme: light) {
    .register-blue-welcome {
        --register-page-bg: #edf3f9;
        --register-card-bg: #ffffff;
        --register-field-bg: #f8fafc;
        --register-field-border: #cfd9e7;
        --register-shell-border: rgba(30, 64, 175, 0.12);
        --register-shell-shadow: rgba(15, 23, 42, 0.14);
    }
}

.register-blue-welcome .register-page-wrap {
    display: grid;
    width: 100%;
    max-width: none !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 24px !important;
    place-items: center;
}

.register-blue-welcome .register-layout {
    display: grid !important;
    grid-template-columns: minmax(310px, 36%) minmax(470px, 64%);
    width: min(100%, 980px);
    min-height: 640px;
    overflow: hidden !important;
    border: 1px solid var(--register-shell-border) !important;
    border-radius: 20px !important;
    background: var(--register-card-bg) !important;
    box-shadow: 0 24px 65px var(--register-shell-shadow) !important;
}

/* Left guidance panel */
.register-blue-welcome .register-journey-panel {
    display: flex !important;
    min-height: 640px;
    flex-direction: column;
    padding: 32px;
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 8%, rgba(255, 255, 255, 0.14), transparent 29%),
        radial-gradient(circle at 95% 93%, rgba(93, 147, 255, 0.22), transparent 30%),
        linear-gradient(155deg, #123166, #0b1e40 76%);
}

.register-blue-welcome .register-brand-lockup {
    display: flex;
    align-items: center;
    gap: 13px;
}

.register-blue-welcome .register-brand-full-logo {
    display: block;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 50%;
    background: #ffffff;
    image-rendering: auto;
    box-shadow: 0 9px 20px rgba(2, 14, 40, 0.24);
}

.register-blue-welcome .register-brand-name {
    display: inline-block;
    color: #ffffff;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    white-space: nowrap;
}

.register-blue-welcome .register-brand-name strong {
    color: #ffad32;
    font-weight: 700;
}

.register-blue-welcome .register-journey-message {
    max-width: 300px;
    margin: auto 0 30px;
}

.register-blue-welcome .register-journey-eyebrow {
    margin: 0 0 11px;
    color: #8fbaff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.register-blue-welcome .register-journey-panel h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: -0.042em;
}

.register-blue-welcome .register-journey-copy {
    margin: 0;
    color: #c6d5ed;
    font-size: 13.5px;
    line-height: 1.6;
}

.register-blue-welcome .register-benefit-list {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.register-blue-welcome .register-benefit-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0;
    background: transparent;
}

.register-blue-welcome .register-benefit-item > span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 9px;
    color: #9dc3ff;
    background: rgba(90, 145, 237, 0.14);
}

.register-blue-welcome .register-benefit-item strong {
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
}

.register-blue-welcome .register-benefit-item div {
    display: grid;
    gap: 2px;
}

.register-blue-welcome .register-benefit-item small {
    color: #aebfda;
    font-size: 10.5px;
    line-height: 1.35;
}

/* Right form panel */
.register-blue-welcome .register-page-card {
    display: grid;
    align-self: stretch;
    align-content: center;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 30px clamp(36px, 5vw, 54px) !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--text-body) !important;
    text-align: left !important;
    background: var(--register-card-bg) !important;
    box-shadow: none !important;
}

.register-blue-welcome .register-flow-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 11.5px;
}

.register-blue-welcome .register-close-link {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 1px solid var(--register-field-border);
    border-radius: 50%;
    color: var(--text-secondary) !important;
    background: var(--register-field-bg);
    text-decoration: none;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.register-blue-welcome .register-close-link:hover,
.register-blue-welcome .register-close-link:focus-visible {
    border-color: var(--brand-blue);
    color: var(--brand-blue) !important;
    background: rgba(59, 130, 246, 0.10);
}

.register-blue-welcome .register-close-link i {
    font-size: 14px;
}

.register-blue-welcome .register-flow-progress {
    height: 4px;
    margin-bottom: 22px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border-strong);
}

.register-blue-welcome .register-flow-progress > span {
    display: block;
    width: 50%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4f8df7, #2f6fdf);
    transition: width 220ms ease;
}

.register-blue-welcome .register-fieldset {
    width: 100%;
}

.register-blue-welcome .register-fieldset.active {
    display: flex;
}

.register-blue-welcome .register-form-heading {
    margin-bottom: 18px;
}

.register-blue-welcome .register-form-heading > span {
    display: none;
}

.register-blue-welcome .register-form-heading h1,
html[data-theme="light"] .register-blue-welcome .register-form-heading h1,
html[data-theme="dark"] .register-blue-welcome .register-form-heading h1 {
    margin: 0 0 5px;
    color: var(--text-heading) !important;
    font-size: 29px;
    line-height: 1.15;
    letter-spacing: -0.032em;
}

.register-blue-welcome .register-form-heading p,
html[data-theme="light"] .register-blue-welcome .register-form-heading p,
html[data-theme="dark"] .register-blue-welcome .register-form-heading p {
    margin: 0;
    color: var(--text-secondary) !important;
    font-size: 12.5px;
}

.register-blue-welcome .register-label,
html[data-theme="light"] .register-blue-welcome .register-label,
html[data-theme="dark"] .register-blue-welcome .register-label {
    margin-bottom: 5px;
    color: var(--text-heading) !important;
    font-size: 12px;
    font-weight: 700;
}

.register-blue-welcome .register-label-hint {
    color: var(--text-secondary) !important;
    font-weight: 400;
}

.register-blue-welcome .register-input,
html[data-theme="light"] .register-blue-welcome .register-input,
html[data-theme="dark"] .register-blue-welcome .register-input {
    width: 100%;
    min-height: 47px;
    margin-bottom: 11px;
    padding: 0 14px;
    border: 1px solid var(--register-field-border) !important;
    border-radius: 9px;
    color: var(--text-heading) !important;
    background: var(--register-field-bg) !important;
    font-size: 13.5px;
    box-shadow: none;
}

.register-blue-welcome .register-input::placeholder {
    color: var(--text-muted) !important;
}

.register-blue-welcome .register-input:hover,
.register-blue-welcome .register-input:focus,
html[data-theme="light"] .register-blue-welcome .register-input:hover,
html[data-theme="light"] .register-blue-welcome .register-input:focus,
html[data-theme="dark"] .register-blue-welcome .register-input:hover,
html[data-theme="dark"] .register-blue-welcome .register-input:focus {
    border-color: #5f97f5 !important;
    background: var(--register-field-bg) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.13) !important;
}

.register-blue-welcome .register-fieldset .password-field {
    margin-bottom: 11px;
}

.register-blue-welcome .password-field .register-input {
    margin-bottom: 0;
    padding-right: 46px;
}

.register-blue-welcome .password-toggle,
html[data-theme="light"] .register-blue-welcome .password-toggle,
html[data-theme="dark"] .register-blue-welcome .password-toggle {
    color: var(--text-secondary) !important;
}

.register-blue-welcome .password-toggle:hover,
.register-blue-welcome .password-toggle:focus-visible {
    color: var(--brand-blue) !important;
    background: rgba(59, 130, 246, 0.10) !important;
}

.register-blue-welcome .register-password-requirements {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: -4px 0 11px;
    color: var(--text-secondary);
    font-size: 10.5px;
    line-height: 1.4;
}

.register-blue-welcome .register-password-requirements i {
    margin-top: 2px;
    color: var(--brand-blue);
}

.register-blue-welcome .register-fieldset .field-error-msg {
    margin: -7px 0 9px;
    color: #ef4444 !important;
    font-size: 11px;
}

.register-blue-welcome .register-input.input-error,
html[data-theme="light"] .register-blue-welcome .register-input.input-error,
html[data-theme="dark"] .register-blue-welcome .register-input.input-error {
    border-color: #ef4444 !important;
}

.register-blue-welcome .register-next-btn,
.register-blue-welcome .register-back-btn {
    min-height: 47px;
    border-radius: 9px;
    font-size: 13.5px;
}

.register-blue-welcome .register-next-btn,
.register-blue-welcome .register-next-btn:hover:not(:disabled) {
    color: #ffffff;
    background: linear-gradient(135deg, #3f82ee, #2563d7) !important;
    box-shadow: 0 9px 20px rgba(37, 99, 235, 0.20);
}

.register-blue-welcome .register-next-btn:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.register-blue-welcome .register-back-btn,
html[data-theme="light"] .register-blue-welcome .register-back-btn,
html[data-theme="dark"] .register-blue-welcome .register-back-btn {
    border: 1px solid var(--register-field-border) !important;
    color: var(--text-body) !important;
    background: transparent !important;
}

.register-blue-welcome .register-back-btn:hover {
    border-color: var(--brand-blue) !important;
    color: var(--brand-blue) !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

.register-blue-welcome .register-btn-row {
    gap: 9px;
    margin-top: 4px;
}

.register-blue-welcome #registerError {
    margin-top: 14px;
}

.register-blue-welcome .registration-success-modal {
    border-color: var(--register-shell-border);
    background: var(--register-card-bg);
    color: var(--text-body);
}

.register-blue-welcome .registration-success-modal h2 {
    color: var(--text-heading);
}

/* Popup Modal for Mobile OTP and Email OTP verification */
.register-blue-welcome .register-otp-modal-overlay {
    padding: 18px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1100;
}

.register-blue-welcome .register-otp-modal-overlay[hidden],
.register-blue-welcome .register-otp-panel[hidden] {
    display: none !important;
}

.register-blue-welcome .register-otp-modal-box {
    position: relative;
    width: min(100%, 440px);
    max-width: 440px;
    padding: 32px 30px 26px;
    border: 1px solid var(--register-shell-border);
    border-radius: 20px;
    background: var(--register-card-bg);
    color: var(--text-body);
    text-align: left;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.55);
    animation: otpSuccessPop 0.22s ease-out;
}

.register-blue-welcome .register-otp-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--register-field-border);
    border-radius: 50%;
    color: var(--text-secondary);
    background: var(--register-field-bg);
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.register-blue-welcome .register-otp-close-btn:hover,
.register-blue-welcome .register-otp-close-btn:focus-visible {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: rgba(59, 130, 246, 0.10);
}

.register-blue-welcome .register-otp-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.register-blue-welcome .register-otp-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 20px;
}

.register-blue-welcome .register-otp-header .register-form-heading {
    margin-bottom: 0;
}

.register-blue-welcome .register-otp-header .register-form-heading h2 {
    margin: 0 0 6px;
    color: var(--text-heading) !important;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.register-blue-welcome .register-otp-header .register-form-heading p {
    margin: 0;
    color: var(--text-secondary) !important;
    font-size: 13px;
    line-height: 1.5;
}

.register-blue-welcome .register-otp-badge {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    border: 1px solid rgba(59, 130, 246, 0.34);
    border-radius: 16px;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.14);
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
}

.register-blue-welcome .register-otp-target {
    color: var(--text-heading);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.register-blue-welcome .register-otp-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.register-blue-welcome .register-otp-input {
    letter-spacing: 0.22em;
    font-size: 16px !important;
    font-weight: 700;
    text-align: center;
}

.register-blue-welcome .register-otp-input::placeholder {
    letter-spacing: normal;
    font-size: 13.5px;
    font-weight: 400;
}

.register-blue-welcome .register-otp-form .field-error-msg {
    margin: -7px 0 9px;
    color: #ef4444 !important;
    font-size: 11px;
}

.register-blue-welcome .register-otp-form .auth-message {
    margin: 0 0 12px;
    font-size: 12.5px;
    text-align: left;
}

.register-blue-welcome .register-otp-resend {
    margin-top: 12px;
    padding: 10px 12px;
    border-color: var(--register-field-border);
    background: var(--register-field-bg);
    font-size: 12.5px;
}

.register-blue-welcome .register-otp-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.register-blue-welcome .register-otp-divider::before,
.register-blue-welcome .register-otp-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--register-field-border);
}

.register-blue-welcome .register-continue-email-btn,
.register-blue-welcome .register-continue-mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 47px;
    padding: 0 18px;
    border: 1px solid rgba(59, 130, 246, 0.45);
    border-radius: 9px;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.10);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

html[data-theme="light"] .register-blue-welcome .register-continue-email-btn,
html[data-theme="light"] .register-blue-welcome .register-continue-mobile-btn {
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.08);
}

@media (prefers-color-scheme: light) {
    .register-blue-welcome .register-continue-email-btn,
    .register-blue-welcome .register-continue-mobile-btn {
        color: #1d4ed8;
        border-color: rgba(37, 99, 235, 0.35);
        background: rgba(37, 99, 235, 0.08);
    }
}

html[data-theme="dark"] .register-blue-welcome .register-continue-email-btn,
html[data-theme="dark"] .register-blue-welcome .register-continue-mobile-btn {
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.10);
}

.register-blue-welcome .register-continue-email-btn:hover,
.register-blue-welcome .register-continue-email-btn:focus-visible,
.register-blue-welcome .register-continue-mobile-btn:hover,
.register-blue-welcome .register-continue-mobile-btn:focus-visible {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.18);
    transform: translateY(-1px);
}

.register-blue-welcome .register-otp-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    padding: 6px 8px;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 160ms ease;
}

.register-blue-welcome .register-otp-back-link:hover,
.register-blue-welcome .register-otp-back-link:focus-visible {
    color: var(--brand-blue);
    text-decoration: underline;
}

@media (max-width: 860px) {
    .register-blue-welcome .register-page-wrap {
        padding: 18px !important;
    }

    .register-blue-welcome .register-layout {
        grid-template-columns: 1fr;
        width: min(100%, 680px);
        min-height: 0;
    }

    .register-blue-welcome .register-journey-panel {
        min-height: auto;
        padding: 25px 30px;
    }

    .register-blue-welcome .register-journey-message {
        max-width: 560px;
        margin: 27px 0 20px;
    }

    .register-blue-welcome .register-journey-panel h2 {
        font-size: 32px;
    }

    .register-blue-welcome .register-benefit-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        border-top: 0;
    }

    .register-blue-welcome .register-benefit-item {
        align-items: flex-start;
        padding: 0;
        border-bottom: 0;
    }

    .register-blue-welcome .register-page-card {
        padding: 30px clamp(28px, 8vw, 54px) 38px !important;
    }
}

@media (max-width: 560px) {
    .register-blue-welcome .register-page-wrap {
        display: block;
        padding: 0 !important;
    }

    .register-blue-welcome .register-layout {
        width: 100%;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .register-blue-welcome .register-journey-panel {
        padding: 22px 20px 24px;
    }

    .register-blue-welcome .register-brand-full-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .register-blue-welcome .register-brand-name {
        font-size: 23px;
    }

    .register-blue-welcome .register-journey-message {
        margin: 24px 0 0;
    }

    .register-blue-welcome .register-journey-panel h2 {
        margin-bottom: 9px;
        font-size: 29px;
    }

    .register-blue-welcome .register-journey-copy {
        font-size: 12.5px;
    }

    .register-blue-welcome .register-benefit-list {
        display: none;
    }

    .register-blue-welcome .register-page-card {
        min-height: 0;
        padding: 24px 18px 34px !important;
    }

    .register-blue-welcome .register-flow-progress {
        margin-bottom: 20px;
    }

    .register-blue-welcome .register-form-heading h1 {
        font-size: 26px;
    }

    .register-blue-welcome .register-input {
        min-height: 49px;
        font-size: 16px;
    }

    .register-blue-welcome .register-btn-row {
        flex-direction: column-reverse;
    }
}

@media (prefers-reduced-motion: reduce) {
    .register-blue-welcome .register-flow-progress > span,
    .register-blue-welcome .register-next-btn {
        transition: none;
    }
}
