/* Global reset for auth pages */
body,
html {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

.body-no-scroll {
    overflow: hidden !important;
}

* {
    box-sizing: border-box;
}

/* Auth Redesign - Split Layout (Form Left, Illustration Right) */
:root {
    --auth-primary: #4b868d;
    --auth-primary-hover: #3d6d73;
    --auth-primary-glow: rgba(75, 134, 141, 0.3);
    --auth-primary-glow-hover: rgba(75, 134, 141, 0.4);
    --auth-bg-light: #f0fdfa;
    /* Very light teal */
    --auth-text-dark: #1e293b;
    --auth-text-muted: #64748b;
}

.auth-screen-new {
    height: 100vh !important;
    width: 100%;
    display: flex;
    flex-direction: row;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    position: relative;
    overflow: hidden !important;
}

.auth-form-side {
    flex: 0 0 50%;
    height: 100vh !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2.5rem 2rem;
    /* Reduced top padding to bring logo higher */
    background: #ffffff;
    overflow: hidden !important;
    /* Block scroll by default */
    position: relative;
    z-index: 10;
}

/* Specific class for pages that NEED scrolling (like Register) */
.auth-side-scroll {
    overflow-y: auto !important;

    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.auth-side-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.auth-form-card {
    width: 100%;
    max-width: 450px;
    /* Standard neat width */
    margin: 1rem 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Right Section: Illustration Side */
.auth-illustration-side {
    flex: 0 0 50%;
    background: var(--auth-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-illustration-wrapper {
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-illustration-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(15, 187, 166, 0.15));
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-branding-content {
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-branding-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.auth-logo-image {
    width: 200px;
    height: 110px;
    object-fit: contain;
    flex-shrink: 0;
    /* Removed invert filter to show original logo color or use brightness(0) for black if needed */
    /* filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1)); */
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

.auth-logo-image:hover {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
}

.auth-logo-default {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    /* filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15)); */
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

.auth-logo-default:hover {
    transform: translateY(-5px) scale(1.05);
    /* filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2)); */
}

.auth-branding-text {
    color: #000000;
    /* Force black text */
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.auth-branding-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    color: #000000;
    /* Force black text */
    text-shadow: none;
    transition: transform 0.3s ease;
}

.auth-branding-title:hover {
    transform: translateX(5px);
}

.auth-branding-tagline {
    font-size: 1.125rem;
    font-weight: 400;
    color: #000000 !important;
    /* Force black text */
    opacity: 1;
    margin: 0;
    margin-top: 0.75rem;
    text-align: left;
    line-height: 1.5;
    text-shadow: none;
}

/* Button Overrides */
.auth-btn-primary-new {
    background: var(--auth-primary);
    box-shadow: 0 4px 14px var(--auth-primary-glow);
}

.auth-btn-primary-new:hover {
    background: var(--auth-primary-hover);
    box-shadow: 0 6px 20px var(--auth-primary-glow-hover);
}

.auth-btn-secondary-new {
    border-color: var(--auth-primary);
    color: var(--auth-primary);
    background: transparent;
}

.auth-btn-secondary-new:hover {
    background: rgba(15, 187, 166, 0.05);
    border-color: var(--auth-primary-hover);
    color: var(--auth-primary-hover);
}

.auth-btn-google-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.auth-btn-google-new:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1.5px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 1rem;
}

/* Form Title & Subtitle */
.auth-form-title {
    color: var(--auth-text-dark) !important;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-form-subtitle {
    color: var(--auth-text-muted) !important;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* branding-compact (for inside form) */
.auth-branding-compact {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo-compact {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

/* Disable scroll on desktop for login page */
@media (min-width: 992px) {
    .no-scroll-desktop {
        overflow-y: hidden !important;
        height: 100vh;
        display: flex;
        align-items: center;
        /* Center vertically if no scroll */
    }

    .auth-screen-fixed {
        overflow: hidden !important;
    }

    /* Optimize spacing for fixed layout to prevent internal overflow/cut-off */
    .no-scroll-desktop .auth-form-card {
        margin-bottom: 0;
    }

    .no-scroll-desktop .auth-footer {
        margin-top: 0.75rem;
        padding-top: 0.25rem;
        font-size: 0.8rem;
    }

    /* Compact form elements for no-scroll mode */
    .no-scroll-desktop .auth-form-new {
        gap: 0.5rem;
    }

    .no-scroll-desktop .auth-input-new {
        padding: 0.6rem 0.8rem;
    }

    .no-scroll-desktop .auth-form-title {
        font-size: 1.25rem;
        margin-bottom: 0.15rem;
    }

    .no-scroll-desktop .auth-form-subtitle {
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }

    .no-scroll-desktop .auth-label {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }

    .no-scroll-desktop .auth-actions-new {
        margin-top: 0.25rem;
        gap: 0.5rem;
    }
}


/* Force HTML overflow hidden when body has no-scroll */
html:has(.body-no-scroll) {
    overflow: hidden !important;
}

/* removed auth-form-offset class */

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Duplicate definition removed and consolidated */

/* OTP Input Styles */
.otp-input-group {
    position: relative;
}

.otp-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: 600;
}

.auth-form-new {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    width: 100%;
    min-width: 0;
}

/* Form Group */
.form-group-new {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    min-width: 0;
    flex-shrink: 0;
}

.auth-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000000 !important;
    /* Force black text */
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.label-icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.05);
    /* Lighter dark background for icon */
    color: #000000 !important;
    border-radius: 6px;
    padding: 2px;
}

.auth-label:hover {
    transform: translateX(3px);
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: #000000 !important;
    /* Force black text */
    margin-top: 0.2rem;
    font-style: italic;
    flex-shrink: 0;
}

.auth-input-new {
    width: 100%;
    max-width: 100%;
    padding: 0.8rem 1rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    /* Visible light gray border */
    border-radius: 10px;
    font-size: 0.875rem;
    color: #1e293b;
    transition: all 0.2s ease;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.auth-input-new:hover {
    border-color: #cbd5e1;
}

.auth-input-new:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--auth-primary);
    /* Teal border */
    box-shadow: 0 0 0 4px rgba(15, 187, 166, 0.1);
    /* Teal glow */
}

.auth-input-new::placeholder {
    color: #94a3b8;
    transition: opacity 0.2s ease;
}

.auth-input-new:focus::placeholder {
    opacity: 0.5;
}

.password-field-new {
    position: relative;
    width: 100%;
}

.password-field-new .auth-input-new {
    padding-right: 3rem;
    /* Space for toggle button */
    width: 100%;
    max-width: 100%;
}

.password-strength-container {
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.password-hint {
    display: block;
    font-size: 0.7rem;
    color: #000000 !important;
    /* Force black text */
    margin-top: 0.3rem;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.password-toggle-new {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    /* Light gray circle */
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.password-toggle-new::after {
    content: "";
    width: 8px;
    height: 8px;
    background: #1e293b;
    /* Dark dot */
    border-radius: 50%;
    display: block;
    transition: transform 0.3s ease;
}

.password-toggle-new:hover {
    background: #cbd5e1;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.password-toggle-new:active {
    transform: translateY(-50%) scale(0.95);
}

.password-toggle-new svg {
    display: none;
    /* Hide SVG, use circle with dot instead */
}

.auth-forgot-link {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 0.25rem;
}

.auth-forgot-link a {
    color: #000000;
    /* Force black text as requested, or very dark blue */
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.auth-forgot-link a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--auth-primary);
    transition: width 0.3s ease;
}

.auth-forgot-link a:hover {
    color: var(--auth-primary-hover);
    transform: translateX(3px);
}

.auth-forgot-link a:hover::after {
    width: 100%;
}

.auth-actions-new {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 0.375rem;
    flex-shrink: 0;
}

.auth-btn-primary-new {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: var(--auth-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--auth-primary-glow),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.auth-btn-primary-new::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-btn-primary-new:hover::before {
    left: 100%;
}

.auth-btn-primary-new:hover {
    background: var(--auth-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--auth-primary-glow-hover),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.auth-btn-primary-new:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.auth-btn-secondary-new {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: #000000;
    /* Black text */
    border: 2px solid #000000;
    /* Black border */
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.auth-btn-secondary-new::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.auth-btn-secondary-new:hover::before {
    width: 300px;
    height: 300px;
}

.auth-btn-secondary-new:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #94a3b8;
}

.auth-btn-secondary-new:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.auth-footer {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #000000 !important;
    /* Force black text */
    padding-top: 1.5rem;
}

.auth-form-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000000 !important;
    /* Force black text */
    margin-bottom: 0.25rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.auth-form-subtitle {
    font-size: 0.75rem;
    color: #000000 !important;
    /* Force black text */
    margin-bottom: 0.625rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.auth-alert-success {
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 8px;
    color: #6ee7b7;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.auth-alert-error {
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Responsive - Tablet and Below */
@media (max-width: 991.98px) {
    .auth-screen-new {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        background: #ffffff;
    }

    .auth-form-side {
        flex: 1 1 auto;
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .auth-illustration-side {
        display: none;
        /* Hide illustration on mobile as per mockup 3 */
    }

    .auth-form-card {
        max-width: 450px;
        margin: 0 auto;
    }
}

/* Responsive - Mobile Devices */
@media (max-width: 575.98px) {
    .auth-screen-new {
        width: 100vw;
        max-width: 100%;
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
        justify-content: center;
        /* Center content vertically */
        padding-bottom: 15vh;
        /* Push content up slightly from absolute center */
    }

    .auth-branding {
        padding: 1.5rem 1rem;
        min-height: auto;
        height: auto;
        width: 100%;
        overflow: visible;
    }

    .auth-branding-header {
        flex-direction: column;
        gap: 0.875rem;
    }

    .auth-branding-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .auth-branding-tagline {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .auth-logo-image {
        width: 120px;
        height: auto;
        max-height: 70px;
    }

    .auth-logo-default {
        width: 80px;
        height: 80px;
    }

    .auth-branding-content {
        max-width: 100%;
    }

    .auth-form-section {
        padding: 1.25rem 1rem;
        width: 100%;
        height: auto;
        min-height: auto;
        align-items: flex-start;
        justify-content: flex-start;
        overflow: visible;
        margin-top: 0;
    }

    .auth-form-card {
        padding: 0;
        max-width: 100%;
        width: 100%;
        overflow: visible;
        margin-top: 0;
        margin-bottom: 0;
    }

    .auth-form-new {
        gap: 0.75rem;
        overflow: visible;
        padding-right: 0;
        width: 100%;
    }

    .form-group-new {
        gap: 0.25rem;
        width: 100%;
    }

    .auth-form-title {
        font-size: 1.15rem;
        margin-bottom: 0.2rem;
        line-height: 1.3;
    }

    .auth-form-subtitle {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .auth-label {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }

    .label-icon {
        width: 18px;
        height: 18px;
        font-size: 0.9rem;
    }

    .auth-input-new {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .password-field-new {
        width: 100%;
    }

    .password-field-new .auth-input-new {
        padding-right: 2.5rem;
        width: 100% !important;
        max-width: 100% !important;
    }

    .password-toggle-new {
        right: 0.75rem;
        width: 24px;
        height: 24px;
    }

    .password-strength-container {
        margin-top: 0.25rem;
    }

    .password-hint {
        font-size: 0.65rem;
        margin-top: 0.25rem;
    }

    .form-hint {
        font-size: 0.7rem;
        margin-top: 0.15rem;
    }

    .auth-forgot-link {
        text-align: right;
        margin-top: -0.5rem;
        margin-bottom: 0.25rem;
    }

    .auth-forgot-link a {
        font-size: 0.85rem;
    }

    .auth-actions-new {
        gap: 0.5rem;
        margin-top: 0.25rem;
        width: 100%;
    }

    .auth-btn-primary-new,
    .auth-btn-secondary-new {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        width: 100%;
    }

    .auth-footer {
        margin-top: 2rem;
        font-size: 0.8rem;
        padding-top: 1rem;
    }

    .otp-channel-selector {
        gap: 0.625rem;
        grid-template-columns: 1fr;
    }

    .otp-channel-card {
        padding: 0.875rem 0.75rem;
    }

    .otp-channel-icon {
        font-size: 1.25rem;
    }

    .otp-channel-label {
        font-size: 0.8rem;
    }

    .terms-checkbox-wrapper {
        padding: 0.625rem;
    }

    .terms-text {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}

/* Responsive - Extra Small Devices */
@media (max-width: 375px) {
    .auth-branding {
        padding: 1rem 0.75rem;
    }

    .auth-branding-title {
        font-size: 1.25rem;
    }

    .auth-branding-tagline {
        font-size: 0.8rem;
    }

    .auth-logo-image,
    .auth-logo-default {
        width: 50px;
        height: 50px;
    }

    .auth-form-section {
        padding: 1rem 0.75rem;
    }

    .auth-input-new {
        padding: 0.6rem 0.7rem;
        font-size: 0.8rem;
    }

    .auth-btn-primary-new,
    .auth-btn-secondary-new {
        padding: 0.65rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* Responsive - Landscape Mobile */
@media (max-width: 991.98px) and (orientation: landscape) {
    .auth-branding {
        padding: 1rem 1.5rem;
        min-height: auto;
    }

    .auth-form-section {
        padding: 1rem 1.5rem;
        margin-top: 0;
    }

    .auth-branding-title {
        font-size: 1.5rem;
    }

    .auth-branding-tagline {
        font-size: 0.85rem;
    }
}

/* Legacy styles (keep for backward compatibility) */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #005b8e 0%, #004066 50%, #021c2f 100%);
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    padding: 2rem 1rem;
}

.auth-card {
    width: min(420px, 100%);
    background: linear-gradient(160deg, rgba(0, 54, 84, 0.85) 0%, rgba(2, 26, 46, 0.92) 100%);
    border-radius: 32px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(13, 206, 255, 0.35), transparent 45%),
        radial-gradient(circle at bottom left, rgba(241, 196, 15, 0.18), transparent 55%);
    z-index: 0;
}

.auth-card-inner {
    position: relative;
    z-index: 1;
}

.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(145deg, #21c1cf 0%, #1064ff 100%);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: 2px;
    margin: 0 auto;
    color: #ffffff;
    box-shadow: 0 15px 30px rgba(16, 100, 255, 0.35);
}

.auth-heading {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.auth-heading h1 {
    font-size: 1.75rem;
    letter-spacing: 0.4rem;
    margin: 0;
}

.auth-heading p {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    opacity: 0.85;
}

.auth-form label {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    display: block;
}

.auth-input {
    width: 100%;
    border-radius: 18px;
    border: none;
    padding: 0.9rem 1.15rem;
    background: rgba(255, 255, 255, 0.92);
    color: #06263d;
    font-weight: 500;
    margin-bottom: 1.2rem;
    transition: box-shadow 0.2s ease;
}

.auth-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 100, 255, 0.32);
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #06263d;
    cursor: pointer;
}

.auth-link {
    font-size: 0.9rem;
    color: #8dd9ff;
    text-decoration: none;
}

.auth-link:hover {
    color: #ffffff;
}

.auth-actions {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.auth-btn-primary,
.auth-btn-secondary {
    padding: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    border-radius: 24px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #05d3ff 0%, #0068ff 100%);
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(5, 211, 255, 0.25);
}

.auth-btn-secondary {
    background: transparent;
    border: 2px solid #f5c849;
    color: #f5c849;
}

.auth-btn-primary:hover,
.auth-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
}

.auth-footer {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

.form-check-input {
    border-radius: 0.35rem;
    margin-right: 0.55rem;
}

.progress {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

@media (min-width: 768px) {
    .auth-screen {
        padding: 3rem 2rem;
    }

    .auth-card {
        padding: 3rem 2.75rem;
    }
}

/* OTP Channel Selector */
.otp-channel-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.otp-channel-option {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.otp-channel-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.otp-channel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: rgb(255, 255, 255);
    /* Semi-transparent white */
    border: 2px solid rgba(0, 0, 0, 0.1);
    /* Light black border */
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
    backdrop-filter: blur(10px);
}

.otp-channel-option:hover .otp-channel-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.otp-channel-option input[type="radio"]:checked+.otp-channel-card {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(20, 184, 166, 0.6);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2),
        0 4px 16px rgba(20, 184, 166, 0.3);
    transform: translateY(-2px);
}

.otp-channel-icon {
    font-size: 2rem;
    display: block;
    line-height: 1;
}

.otp-channel-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000000 !important;
    display: block;
}

/* Terms Checkbox */
.terms-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.terms-checkbox-wrapper:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.terms-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.terms-checkmark {
    position: relative;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.terms-checkmark::after {
    content: "";
    position: absolute;
    display: none;
    width: 6px;
    height: 10px;
    border: solid #006875;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 2px;
}

.terms-checkbox:checked~.terms-checkmark {
    background: #14b8a6;
    border-color: #14b8a6;
}

.terms-checkbox:checked~.terms-checkmark::after {
    display: block;
}

.terms-text {
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.6;
    flex: 1;
}

.terms-link {
    color: #2563eb;
    /* Dark blue for links */
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #fcd34d;
    text-decoration: none;
}

/* Utility to force no scroll on body */
.body-no-scroll {
    overflow: hidden !important;
}

/* Reduced offset for taller forms (Reset Password, Verify OTP) to prevent overflow */
.auth-form-offset-compact {
    padding-top: 8rem !important;
}

/* Responsive adjustment for compact offset */
@media (max-width: 991.98px) {
    .auth-form-offset-compact {
        padding-top: 1.5rem !important;
        /* Reset to normal mobile padding */
    }
}