/* FastAPI Auth Pages - Minimal CSS for authentication forms only */

/* ===== BASE TYPOGRAPHY ===== */
:root {
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #212529;
    --bs-body-bg: #fff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Roboto", sans-serif !important;
    font-size: 13px !important;
    font-weight: 400;
    line-height: 26px !important;
    color: #6c6c6c !important;
    background-color: var(--bs-body-bg);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* ===== HEADINGS ===== */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: "Source Sans 3", sans-serif !important;
    font-weight: 700 !important;
    color: #1f1f1f !important;
    margin-bottom: 5px;
    letter-spacing: -0.3px;
}

h1, .h1 {
    font-size: 24px !important;
    line-height: 30px !important;
}

h2, .h2 {
    font-size: 21px !important;
    line-height: 25px !important;
}

h3, .h3 {
    font-size: 20px !important;
    line-height: 24px !important;
}

h4, .h4 {
    font-size: 18px !important;
    line-height: 23px !important;
}

h5, .h5 {
    font-size: 16px !important;
    line-height: 22px !important;
}

h6, .h6 {
    font-size: 14px !important;
    line-height: 20px !important;
}

p {
    margin-top: 0;
    margin-bottom: 30px;
    padding-bottom: 0px;
    color: #6c6c6c;
}

a {
    color: #4A89DC;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #3a6bb8;
    text-decoration: underline;
}

strong, b {
    font-weight: bolder;
}

em, i {
    font-style: italic;
}

small, .small {
    font-size: 0.875em;
}

/* ===== TEXT UTILITIES ===== */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-lowercase {
    text-transform: lowercase !important;
}

.text-capitalize {
    text-transform: capitalize !important;
}

/* Bootstrap margin classes should not be overridden - use Bootstrap defaults */

.p-0 {
    padding: 0 !important;
}

.p-3 {
    padding: 1rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

.w-100 {
    width: 100% !important;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#preloader.preloader-hide {
    opacity: 0;
    pointer-events: none;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border.color-highlight {
    color: #4A89DC;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* ===== LOGIN PAGE LAYOUT ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0 20px;
}

.login-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.login-row {
    width: 900px;
    max-width: 100%;
    min-height: 550px;
    border-radius: 10px;
    background: #fff;
    padding: 0;
    padding-top: 4.5rem;
    box-shadow: 5px 5px 10px 1px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
}

.login-row > .col-md-12 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1rem;
}

.login-row > .col-md-6 {
    margin-top: 0;
    padding-top: 0;
    display: flex;
    align-items: center;
}

.login-side-image {
    padding: 4em;
    background-position: center;
    background-size: contain; /* Restore original size */
    background-repeat: no-repeat;
    border-radius: 10px 0 0 10px;
    position: relative;
    background-origin: content-box;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
}

.login-right-inner {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-auth-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.login-auth-corner .login-lang-form {
    display: inline-block;
    margin: 0;
}

.login-auth-corner .login-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    background: #fff;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.1);
}

.login-auth-corner .login-lang-btn img {
    width: 1.5rem;
    height: 1rem;
    object-fit: cover;
    border-radius: 1px;
}

.login-auth-corner .login-lang-btn:hover {
    border-color: #4A89DC;
    box-shadow: 0 1px 3px rgba(74, 137, 220, 0.25);
}

.login-input-box {
    box-sizing: border-box;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.login-text-divider {
    margin: 1.5rem 0; /* Restore original spacing */
    line-height: 0;
    text-align: center;
    position: relative;
}

.login-text-divider span {
    background-color: #fff;
    padding: 1em;
    position: relative;
    z-index: 2;
    color: #6c757d;
    font-size: 0.875rem;
}

.login-text-divider::before {
    content: " ";
    display: block;
    border-top: 1px solid #e3e3e3;
    border-bottom: 1px solid #f7f7f7;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 1;
}

/* ===== OTP INPUT BOX ===== */
.login-otp-box {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.login-otp-box .otp-field {
    flex: 1;
    width: 14%;
    height: 3rem;
    font-size: 2rem;
    font-family: "Roboto", sans-serif !important;
    font-weight: 500 !important;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-width: 60px;
    color: #1f1f1f !important;
}

.login-otp-box .otp-field:focus {
    border-color: #4A89DC;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(74, 137, 220, 0.25);
}

/* ===== FORM FLOATING OVER (Modern input style) ===== */
.form-floating-over {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating-over .form-control {
    padding: 12px 16px 12px 48px;
    border: 1px solid #e9ecef;
    border-radius: 28px; /* Material Design pill shape */
    font-size: 13px;
    font-family: "Roboto", sans-serif;
    line-height: 24px; /* Adjusted for better vertical centering */
    transition: all 0.2s ease;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1);
    height: 48px; /* Fixed height to match buttons */
    min-height: 48px;
    text-align: left; /* Ensure text aligns properly */
    vertical-align: middle;
}

.form-floating-over .form-control:focus {
    border-color: #4A89DC;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(74, 137, 220, 0.12);
    background: #fff;
    outline: none;
}

.form-floating-over .form-control:hover {
    border-color: #adb5bd;
    background: #fff;
}

.form-floating-over label {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    color: #6c757d;
    transition: all 0.2s ease;
    pointer-events: none;
    background: #fff;
    padding: 0 0.5rem;
}

.form-floating-over .form-control:focus ~ label,
.form-floating-over .form-control:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.75rem;
    color: #4A89DC;
    background: #fff;
    z-index: 2;
    transform: translateY(0);
    padding: 0 0.5rem;
    font-weight: 500;
}

.form-floating-over .form-control:focus,
.form-floating-over .form-control:not(:placeholder-shown) {
    padding-top: 1.25rem;
    padding-bottom: 0.75rem;
}

.form-floating-over i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 3;
}

.form-floating-over .form-control:focus ~ i {
    color: #4A89DC;
}

/* ===== INPUT STYLE (Legacy input style) ===== */
.input-style {
    position: relative;
    margin-bottom: 15px !important;
}

.input-style input,
.input-style select,
.input-style textarea {
    font-size: 12px;
    width: 100%;
    line-height: 45px;
    height: 45px;
    border-top-width: 0px;
    border-right-width: 0px;
    border-left-width: 0px;
    padding: 0px;
    border-radius: 0px;
    border-bottom: 1px solid #e9ecef;
    background-color: transparent;
    color: inherit;
}

.input-style input:hover,
.input-style input:focus,
.input-style input:active,
.input-style select:hover,
.input-style select:focus,
.input-style select:active,
.input-style textarea:hover,
.input-style textarea:focus,
.input-style textarea:active {
    outline: none;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.input-style label {
    opacity: 0;
    left: 0px !important;
    transform: translateX(30px);
    position: absolute;
    top: -12px;
    height: 10px;
    font-size: 10px;
    transition: all 150ms ease;
    background-color: #FFF;
}

.input-style-active label {
    opacity: 1;
    transform: none !important;
}

.input-style.has-icon i:first-child {
    position: absolute;
    top: 50%;
    left: 0;
    width: 20px;
    text-align: center;
    margin-top: -8px;
    color: #6c757d;
    z-index: 1;
}

.input-style.has-icon.has-borders i:first-child {
    padding-left: 15px !important;
}

.input-style.has-icon.has-borders input,
.input-style.has-icon.has-borders select,
.input-style.has-icon.has-borders textarea {
    padding-left: 35px !important;
}

.input-style.has-icon input,
.input-style.has-icon select,
.input-style.has-icon textarea {
    padding-left: 25px;
}

.input-style.no-borders.input-style-always-active label {
    opacity: 1;
    left: 6px !important;
    transform: translateX(-14px) !important;
    margin-left: 0px !important;
    position: absolute;
    padding: 0px 8px !important;
    height: 23px;
    font-size: 12px;
    transition: all 250ms ease;
    background-color: #FFF;
    top: -12px;
}

.input-style.input-style-active label {
    left: 4px !important;
    transform: translateX(-14px) !important;
    position: absolute;
    padding: 0px 8px !important;
    height: 23px;
    font-size: 12px;
    transition: all 250ms ease;
    background-color: #FFF;
}

.input-style em {
    position: absolute;
    top: 50%;
    margin-top: -12px;
    right: 5px;
    pointer-events: none;
    font-size: 10px;
    font-style: normal;
    opacity: 0.3;
}

.input-style.validate-field input:focus {
    border-bottom-color: #4A89DC;
}

.input-style.validate-field input:focus ~ i {
    color: #4A89DC;
}

.input-style textarea {
    line-height: 20px !important;
    padding-top: 15px !important;
    transition: all 250ms ease !important;
}

.input-style select {
    color: inherit;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Remove number input arrows */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ===== BUTTONS ===== */
.btn, input, select {
    box-shadow: none !important;
    outline: 0px !important;
}

.btn:hover,
.btn:focus,
.btn:active,
button:hover,
button:focus,
button:active {
    outline: none;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.btn-m {
    padding: 12px 24px;
    font-size: 13px;
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    line-height: 26px;
    border-radius: 28px; /* Material Design pill shape */
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    height: 48px; /* Fixed height to match input fields */
    min-height: 48px;
}

.btn-m:hover {
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

.btn-m:active {
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
}

.btn-full {
    width: 100%;
}

/* Google button specific styles - Material Design / Google Branding Guidelines */
a.btn.bg-theme.border-blue-dark,
.btn.bg-theme.border-blue-dark {
    background-color: #FFFFFF !important;
    color: #1F1F1F !important;
    border: 1px solid #747775 !important;
    border-radius: 28px !important; /* Pill shape as per Google guidelines */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0;
    height: 48px !important; /* Fixed height to match other buttons and inputs */
    min-height: 48px !important;
    padding: 12px 16px !important;
    font-family: "Roboto", sans-serif !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    line-height: 26px !important;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

a.btn.bg-theme.border-blue-dark:hover,
.btn.bg-theme.border-blue-dark:hover {
    background-color: #F8F9FA !important;
    border-color: #747775 !important;
    color: #1F1F1F !important;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
    text-decoration: none;
    transform: none;
}

a.btn.bg-theme.border-blue-dark:active,
.btn.bg-theme.border-blue-dark:active {
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
}

a.btn.bg-theme.border-blue-dark img,
.btn.bg-theme.border-blue-dark img {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    width: 20px !important;
    height: 20px !important;
    margin-right: 12px !important;
    margin-left: 0 !important;
}

a.btn.bg-theme.border-blue-dark span,
.btn.bg-theme.border-blue-dark span {
    display: inline-block;
}

.btn-link {
    background: none;
    border: none;
    color: inherit;
    text-decoration: underline;
    padding: 0;
    cursor: pointer;
}

.btn-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.rounded-l {
    border-radius: 15px;
}

.rounded-3 {
    border-radius: 0.5rem;
}

.rounded-m {
    border-radius: 0.75rem;
}

.rounded-s {
    border-radius: 0.25rem;
}

.rounded-0 {
    border-radius: 0;
}

.shadow-s {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== COLORS ===== */
.color-highlight {
    color: #4A89DC !important;
}

.bg-highlight {
    background: #4A89DC !important; /* Material Design primary color */
    border: none !important;
    color: #fff !important;
    border-radius: 28px !important; /* Material Design pill shape */
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15) !important;
    transition: box-shadow 0.2s ease, background-color 0.2s ease !important;
    font-weight: 500 !important;
}

.bg-highlight:hover {
    background: #3a6bb8 !important;
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15) !important;
    transform: none !important;
}

.bg-highlight:active {
    background: #2d5a9e !important;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15) !important;
}

.color-blue-dark {
    color: #4A89DC !important;
}

.bg-blue-dark {
    background-color: #4A89DC !important;
    color: #fff !important;
}

.bg-blue-dark:hover {
    background-color: #3a6bb8 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 137, 220, 0.3);
}

.bg-theme {
    background-color: #FFF !important;
    color: #4A89DC !important;
}

.bg-theme:hover {
    background-color: #f8f9fa !important;
}

.border-blue-dark {
    border-color: #4A89DC !important;
    border-width: 2px !important;
    border-style: solid !important;
}

.bg-red-dark {
    background: #dc3545;
    color: #fff;
}

.bg-red-dark:hover {
    background: #bb2d3b;
}

/* ===== TYPOGRAPHY ===== */
.font-12 {
    font-size: 0.75rem;
    line-height: 1.5;
}

.font-14 {
    font-size: 0.875rem;
    line-height: 1.5;
}

.font-16 {
    font-size: 1rem;
    line-height: 1.5;
}

.font-600 {
    font-weight: 600;
}

.font-700 {
    font-weight: 700;
}

/* Ensure consistent text rendering across all elements */
body, p, span, div, a, button, input, select, textarea, label, h1, h2, h3, h4, h5, h6 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Ensure consistent line heights for text elements */
p, span, div, a, label {
    line-height: 1.5;
}

/* Link styles - ensure they're visible */
a {
    color: #4A89DC;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #3a6bb8;
    text-decoration: underline;
}

a.btn {
    text-decoration: none;
}

a.btn:hover {
    text-decoration: none;
}

/* Strong/em styles */
strong, b {
    font-weight: 600;
}

em, i {
    font-style: italic;
}

/* Ensure headings have proper spacing */
h1, .h1 {
    margin-bottom: 1rem;
}

h5, .h5 {
    margin-bottom: 0.75rem;
}

/* ===== UTILITIES ===== */
.opacity-70 {
    opacity: 0.7;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flex-fill {
    flex: 1 1 auto;
}

/* ===== CARD STYLE (for modals) ===== */
.card-style {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.card-style .content {
    padding: 1.5rem;
}

/* Legal modals (Terms of Service, Privacy Policy) */
.legal-modal-iframe {
    display: block;
    width: 100%;
    min-height: 70vh;
    height: 70vh;
    border: none;
}

/* ===== MENU/MODAL STYLES ===== */
.menu-box-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
}

.menu-box-modal-full {
    background: #fff;
}

.menu-content {
    padding: 1rem;
}

.menu-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.menu-title h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-menu {
    color: #6c757d;
    text-decoration: none;
    font-size: 1.5rem;
}

.close-menu:hover {
    color: #000;
}

.divider {
    height: 1px;
    background: #e9ecef;
    margin: 1rem 0;
}

.divider-margins {
    margin: 1.5rem 0;
}

/* ===== ALERT STYLES ===== */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* ===== FORM CHECK ===== */
.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}

.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    margin-left: -1.5em;
    vertical-align: top;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.25);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-check-input[type=checkbox] {
    border-radius: 0.25em;
}

.form-check-input:checked {
    background-color: #4A89DC;
    border-color: #4A89DC;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.form-check-label {
    cursor: pointer;
}

/* ===== FORM SELECT ===== */
.form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-select:focus {
    border-color: #4A89DC;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(74, 137, 220, 0.25);
}

/* ===== INPUT GROUP ===== */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group > .form-control,
.input-group > .form-select {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

/* ===== ADDITIONAL UTILITIES ===== */
.btn-xs {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
}

.text-decoration-none {
    text-decoration: none !important;
}

.text-decoration-none:hover {
    text-decoration: underline !important;
}

.mt-n2 {
    margin-top: -0.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.small {
    font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media only screen and (max-width: 768px) {
    .login-wrapper {
        background: #fff !important; /* Remove gray background on mobile */
        padding: 0 !important;
        min-height: 100vh;
    }
    
    .login-main {
        min-height: 100vh;
        padding: 0;
        margin: 0;
        max-width: 100%;
    }
    
    .login-row {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh !important;
        border-radius: 0 !important; /* Remove rounded corners */
        box-shadow: none !important; /* Remove shadow */
        background: #fff;
        padding: 0;
        padding-top: 0;
        flex-direction: column;
        display: flex;
    }
    
    .login-row > .col-md-12 {
        position: relative !important; /* Change from absolute to relative */
        padding: 1rem;
        margin-bottom: 0;
    }
    
    .login-side-image {
        width: 100%;
        height: 200px;
        min-height: 200px;
        padding: 2rem;
        border-radius: 0 !important;
        background-size: contain;
    }
    
    .login-right {
        width: 100%;
        flex: 1;
        padding: 2rem 1.5rem;
        border-radius: 0 !important;
        padding-top: 2rem;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
    
    .login-input-box {
        width: 100%;
        max-width: 100%;
    }

    .login-auth-corner {
        bottom: 0.25rem;
        right: 0;
    }
}

/* ===== DARK MODE SUPPORT ===== */
[data-theme="dark"] .login-wrapper {
    background: linear-gradient(135deg, #121212 0%, #1b1b1b 100%);
}

[data-theme="dark"] .login-row {
    background: #2d2d2d;
    box-shadow: 5px 5px 10px 1px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .login-right {
    background: #2d2d2d;
    color: #ffffff;
}

[data-theme="dark"] .login-side-image {
    background: linear-gradient(135deg, #4A89DC, #5D9CEC);
}

[data-theme="dark"] .login-text-divider span {
    background-color: #2d2d2d;
}

[data-theme="dark"] .login-text-divider::before {
    border-top: 1px solid #404040;
    border-bottom: 1px solid #404040;
}

[data-theme="dark"] .form-floating-over .form-control {
    background: #2d2d2d;
    border-color: #404040;
    color: #fff;
}

[data-theme="dark"] .form-floating-over label {
    background: #2d2d2d;
    color: #adb5bd;
}

[data-theme="dark"] .form-floating-over .form-control:focus ~ label,
[data-theme="dark"] .form-floating-over .form-control:not(:placeholder-shown) ~ label {
    background: #1a1a1a;
    color: #4A89DC;
}

/* ===== PHONE NUMBER INPUT GROUP ===== */
.form-floating-over.phone-input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Ensure phone input gets all base styles from .form-floating-over .form-control */
.form-floating-over.phone-input-group .form-control.phone-number-input {
    /* All base styles are inherited from .form-floating-over .form-control */
    /* Only adjust padding to make room for country code selector */
    padding-left: 95px !important;
    padding-right: 48px !important;
    /* Ensure it has the same border, border-radius, height, etc. as other inputs */
    border: 1px solid #e9ecef !important;
    border-radius: 28px !important;
    height: 48px !important;
    min-height: 48px !important;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.1) !important;
    background: #fff !important;
}

/* Country code selector */
.form-floating-over.phone-input-group .phone-country-select {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 32px;
    padding: 4px 20px 4px 8px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-family: "Roboto", sans-serif;
    color: #6c757d;
    z-index: 4;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    cursor: pointer;
}

.form-floating-over.phone-input-group .phone-country-select:focus {
    outline: none;
    color: #4A89DC;
}

/* Label positioning for phone input */
.form-floating-over.phone-input-group label {
    left: 95px;
}

.form-floating-over.phone-input-group .form-control.phone-number-input:focus ~ label,
.form-floating-over.phone-input-group .form-control.phone-number-input:not(:placeholder-shown) ~ label {
    left: 1rem;
}

/* Icon positioning for phone input */
.form-floating-over.phone-input-group i {
    right: 1rem;
    left: auto;
}

/* Hover and focus states for phone input */
.form-floating-over.phone-input-group .form-control.phone-number-input:hover {
    border-color: #adb5bd !important;
    background: #fff !important;
}

.form-floating-over.phone-input-group .form-control.phone-number-input:focus {
    border-color: #4A89DC !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 3px rgba(74, 137, 220, 0.12) !important;
    background: #fff !important;
    outline: none !important;
    padding-top: 1.25rem !important;
    padding-bottom: 0.75rem !important;
}

.form-floating-over.phone-input-group .form-control.phone-number-input:focus ~ i {
    color: #4A89DC !important;
}

[data-theme="dark"] .input-style label {
    background-color: #2d2d2d;
}

[data-theme="dark"] .input-style.input-style-active label,
[data-theme="dark"] .input-style.no-borders.input-style-always-active label {
    background-color: #1a1a1a;
}

[data-theme="dark"] .input-style input,
[data-theme="dark"] .input-style select,
[data-theme="dark"] .input-style textarea {
    color: #fff;
    border-bottom-color: #404040;
}

[data-theme="dark"] .input-style.validate-field input:focus {
    border-bottom-color: #4A89DC;
}

[data-theme="dark"] .input-style em {
    color: #adb5bd;
}

[data-theme="dark"] .card-style {
    background: #2d2d2d;
    color: #fff;
}

[data-theme="dark"] #preloader {
    background: #1a1a1a;
}

[data-theme="dark"] .login-auth-corner .login-lang-btn {
    background: #2d2d2d;
    border-color: #404040;
    color: #fff;
}

[data-theme="dark"] .login-auth-corner .login-lang-btn:hover {
    border-color: #4A89DC;
    background: #1a1a1a;
}

