body {
    margin: 0;
    background: #f8fafc;
    font-family: 'Inter', 'Exo 2', sans-serif;
}

html {
    scrollbar-color: #0ea5e9 rgba(224, 242, 254, 0.65);
}

html::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track {
    background: rgba(224, 242, 254, 0.65);
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #38bdf8, #2563eb);
    border-radius: 999px;
}

::selection {
    color: #fff;
    background: #0ea5e9;
}

body,
.auth-bg-wrapper,
.glass-card,
.glass-card * {
    box-sizing: border-box;
}

.auth-bg-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(rgba(10, 24, 42, 0.24), rgba(10, 24, 42, 0.38)),
        url('/images/auth-dubai-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.auth-bg-wrapper::before,
.auth-bg-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: float 10s infinite ease-in-out alternate;
}

.auth-bg-wrapper::before {
    width: 400px;
    height: 400px;
    background: rgba(56, 189, 248, 0.38);
    top: -100px;
    left: -100px;
}

.auth-bg-wrapper::after {
    width: 300px;
    height: 300px;
    background: rgba(37, 99, 235, 0.32);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 520px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card form {
    width: 100%;
}

.glass-card .mb-4,
.glass-card .form-control,
.glass-card .input-group {
    width: 100%;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(14, 165, 233, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.auth-title {
    font-weight: 800;
    font-size: 1.75rem;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 2rem;
}

.form-label {
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    color: #1e293b !important;
    transition: all 0.2s ease !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.glass-card input.form-control:-webkit-autofill,
.glass-card input.form-control:-webkit-autofill:hover,
.glass-card input.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #1e293b;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    caret-color: #1e293b;
}

.input-group .form-control {
    border-radius: 0 !important;
    min-width: 0;
    flex: 1 1 auto;
}

.input-group-text {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    color: #1e293b !important;
    transition: all 0.2s ease !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    flex: 0 0 auto;
}

button.input-group-text {
    cursor: pointer;
}

.input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
}

.input-group .input-group-text {
    border-radius: 0 !important;
}

.input-group-merge .form-control {
    border-right: none !important;
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group-merge .input-group-text {
    border-left: none !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

body.salecore-theme .glass-card .form-control:focus,
body.salecore-theme .glass-card .input-group-merge.has-focus .input-group-text {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2) !important;
    background: #fff !important;
    outline: none !important;
}

.btn-auth {
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #2563eb 100%) border-box !important;
    background-origin: border-box !important;
    background-clip: border-box !important;
    color: #fff;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    padding: 0.85rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.32);
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 1rem;
}

.btn-auth:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #2563eb 100%) border-box !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 28px rgba(37, 99, 235, 0.38);
    color: #fff;
}

.btn-auth:focus,
.btn-auth:focus-visible,
.btn-auth:active {
    border: 0 !important;
    outline: 0 !important;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #2563eb 100%) border-box !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22), 0 10px 22px rgba(14, 165, 233, 0.32) !important;
}

.form-check-input {
    background-color: #fff;
    border-color: rgba(148, 163, 184, 0.4);
    border-radius: 4px;
    margin-top: 0.25em;
}

body.salecore-theme .glass-card .form-check-input:checked,
body.salecore-theme .glass-card .form-check-input:checked:focus {
    background: linear-gradient(135deg, #38bdf8, #2563eb) !important;
    border-color: #0ea5e9 !important;
}

body.salecore-theme .glass-card .form-check-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.22) !important;
}

.auth-link {
    color: #0ea5e9;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.auth-link:hover {
    color: #2563eb;
}

.auth-logo-box {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.auth-logo-box a {
    display: block;
    width: min(100%, 300px);
}

.auth-logo-box img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
}

@media (max-width: 575.98px) {
    .auth-bg-wrapper {
        align-items: flex-start;
        padding: 1rem;
        background-attachment: scroll;
    }

    .glass-card {
        margin: auto 0;
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }

    .auth-title {
        font-size: 1.45rem;
    }

    .glass-card .d-flex.justify-content-between {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 0.75rem;
    }
}
