/* Client Portal Guest Layout Styles */
/* Dedicated CSS for authentication screens */

/* Font override - Force Raleway everywhere */
*, *::before, *::after,
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video,
input, textarea, select, button,
.btn, .form-control, .form-label, .card, .card-body, .card-header,
.alert, .container, .row, .col-md-4 {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

.gap-3 {
    gap: 3rem;
}

.gap-4 {
    gap: 4rem;
}

.gap-5 {
    gap: 5rem;
}

.gap-6 {
    gap: 6rem;
}

.m-1 {
    margin: 1rem;
}
.m-2 {
    margin: 2rem;
}
.m-3 {
    margin: 3rem;
}
.m-4 {
    margin: 4rem;
}
.mt-1 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 2rem;
}
.mt-3 {
    margin-top: 3rem;
}
.mt-4 {
    margin-top: 4rem;
}
.pb-5px {
    padding-bottom: 5px;
}
.pb-10px {
    padding-bottom: 5px;
}
.mb-1 {
    margin-bottom: 1rem;
}
.mb-2 {
    margin-bottom: 2rem;
}
.mb-3 {
    margin-bottom: 3rem;
}
.mb-4 {
    margin-bottom: 4rem;
}
.ml-1 {
    margin-left: 1rem;
}
.ml-2 {
    margin-left: 2rem;
}
.ml-3 {
    margin-left: 3rem;
}
.ml-4 {
    margin-left: 4rem;
}
.mr-1 {
    margin-right: 1rem;
}
.mr-2 {
    margin-right: 2rem;
}
.mr-3 {
    margin-right: 3rem;
}
.mr-4 {
    margin-right: 4rem;
}
.my-1 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.my-2 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.my-3 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.my-4 {
    margin-top: 4rem;
    margin-bottom: 4rem;
}
.mx-1 {
    margin-left: 1rem;
    margin-right: 1rem;
}
.mx-2 {
    margin-left: 2rem;
    margin-right: 2rem;
}
.mx-3 {
    margin-left: 3rem;
    margin-right: 3rem;
}
.mx-4 {
    margin-left: 4rem;
    margin-right: 4rem;
}
.p-1 {
    padding: 1rem;
}
.p-2 {
    padding: 2rem;
}
.p-3 {
    padding: 3rem;
}
.p-4 {
    padding: 4rem;
}
.pt-1 {
    padding-top: 1rem;
}
.pt-2 {
    padding-top: 2rem;
}
.pt-3 {
    padding-top: 3rem;
}
.pt-4 {
    padding-top: 4rem;
}
.pb-1 {
    padding-bottom: 1rem;
}
.pb-2 {
    padding-bottom: 2rem;
}
.pb-3 {
    padding-bottom: 3rem;
}
.pb-4 {
    padding-bottom: 4rem;
}
.pl-1 {
    padding-left: 1rem;
}
.pl-2 {
    padding-left: 2rem;
}
.pl-3 {
    padding-left: 3rem;
}
.pl-4 {
    padding-left: 4rem;
}
.pr-1 {
    padding-right: 1rem;
}
.pr-2 {
    padding-right: 2rem;
}
.pr-3 {
    padding-right: 3rem;
}
.pr-4 {
    padding-right: 4rem;
}
.py-1 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.py-2 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.py-3 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.py-4 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.px-1 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.px-2 {
    padding-left: 2rem;
    padding-right: 2rem;
}
.px-3 {
    padding-left: 3rem;
    padding-right: 3rem;
}
.px-4 {
    padding-left: 4rem;
    padding-right: 4rem;
}

/* Guest body styles with background images */
body.client-portal-guest {
    background-color: #EBEEF2;
    color: #2E365C;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scroll */

    /* Desktop background - moon auth image */
    background-image: url('/img/backgrounds/desktop-auth.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Environment indicator for non-production */
.environment-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #FF7522;
    color: white;
    text-align: center;
    padding: 8px;
    font-weight: 600;
    z-index: 1000;
    font-size: 14px;
}

.environment-indicator + .guest-logo {
    margin-top: 40px;
}

/* Guest logo positioning */
.guest-logo {
    position: fixed;
    top: 38px;
    left: 31px;
    z-index: 200;
}

/* Hide mobile title area on desktop */
.mobile-title-area {
    display: none;
}

/* Utility classes for responsive visibility */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* Mobile welcome heading styling */
.mobile-only-welcome-heading {
    margin-top: 10px;
    margin-left: 25px;
    margin-right: 25px;
    color: #FFF;
    text-align: center;
    font-family: Raleway;
    font-size: 36px; /* Do not use variable for this */
    font-style: normal;
    font-weight: 700;
}

.guest-logo img {
    width: 166px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Guest main container */
.guest-main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 80px 1rem;
    min-height: calc(100vh - 60px);
    width: 100%;
    box-sizing: border-box;
}

/* Guest footer */
.guest-footer {
    background-color: rgba(244, 244, 244, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(233, 236, 239, 0.5);
    padding: 15px 20px;
    text-align: center;
    color: #6c757d;
    font-size: 16px;
    line-height: 1.5;
    min-height: 60px;
    height: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    white-space: normal;
    word-wrap: break-word;
}

.guest-footer a,
.guest-footer span {
    line-height: 1.5 !important;
    vertical-align: middle !important;
    display: inline-block;
}

.guest-footer a {
    color: #2E365C;
    text-decoration: none;
}

.guest-footer a:hover {
    text-decoration: underline;
}

/* Auth container - reusable for login, registration, reset password */
.auth-container {
    width: 539px;
    min-height: 647px;
    flex-shrink: 0;
    border-radius: 24px;
    background: #FFF;
    box-shadow: 7px 7px 4.5px 0 rgba(47, 55, 92, 0.26);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto; /* Center horizontally */
    position: relative;
}

/* Auth form wrapper */
.auth-form-wrapper {
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Inner centered container */
.auth-inner-container {
    margin: 80px 40px;
}

/* Sign In title */
.auth-title {
    color: #333;
    font-family: Raleway;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 32px;
}

/* Form labels */
.auth-label {
    color: #666;
    font-family: Raleway;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 12px;
    display: block;
}

/* Form input fields */
.auth-input {
    height: 56px;
    align-self: stretch;
    border-radius: 12px;
    border: 1px solid rgba(102, 102, 102, 0.35);
    width: 100%;
    padding: 0 16px;
    font-family: Raleway;
    font-size: 16px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(102, 102, 102, 0.6);
}

/* Input field with error styling */
.auth-input.error {
    border: 1px solid #dc3545;
}

/* Error message styling */
.auth-error {
    color: #dc3545;
    font-family: Raleway;
    font-size: 14px;
    font-weight: 400;
    margin-top: 4px;
    display: block;
}

/* Captcha styling */
.auth-captcha-container {
    margin-bottom: 32px;
}

.auth-captcha-label {
    color: #666;
    font-family: Raleway;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 12px;
    display: block;
}

.auth-captcha-image-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.auth-captcha-image {
    border-radius: 8px;
    border: 1px solid rgba(102, 102, 102, 0.35);
    background: #fff;
    padding: 8px;
}

.auth-captcha-refresh {
    background: #F3F4F6;
    border: 1px solid rgba(102, 102, 102, 0.35);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: Raleway;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-captcha-refresh:hover {
    background: #E5E7EB;
    border-color: rgba(102, 102, 102, 0.5);
}

.auth-captcha-refresh svg {
    width: 16px;
    height: 16px;
}

/* Form field groups with 32px gap */
.auth-field-group {
    margin-bottom: 32px;
}

/* Password field label container */
.auth-label-container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

/* Label inside container - remove bottom margin */
.auth-label-container .auth-label {
    margin-bottom: 0;
}

/* Password toggle button */
.auth-password-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 8px;
}

/* Eye icon styling */
.auth-eye-icon {
    display: flex;
    width: 24px;
    height: 24px;
    padding: 4.011px 2.898px 3.993px 2.914px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* Show text styling */
.auth-show-text {
    color: rgba(102, 102, 102, 0.80);
    text-align: right;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* Send OTP button */
.auth-send-button {
    display: flex;
    width: 459px;
    padding: 14px 0 15px 0;
    justify-content: center;
    align-items: center;
    border-radius: 32px;
    opacity: 0.95;
    background: #2F375C;
    border: none;
    cursor: pointer;
    margin-top: 32px;
    color: white;
    font-family: Raleway;
    font-size: 16px;
    font-weight: 500;
}

/* Disabled button state */
.auth-send-button-disabled {
    background: #9CA3AF !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.auth-send-button-disabled:hover {
    background: #9CA3AF !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Forgot Password link */
.auth-forgot-password {
    color: #394164;
    font-family: Raleway;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-top: 15px;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.auth-forgot-password:hover {
    text-decoration: underline;
}

/* OTP information text */
.auth-otp-info {
    margin-top: 52px;
    color: #666;
    font-family: Raleway;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* WhatsApp text - medium weight */
.auth-whatsapp-text {
    color: #666;
    font-family: Raleway;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

/* OTP validity warning - bold and underlined */
.auth-otp-warning {
    color: #666;
    font-family: Raleway;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

/* Cancel text styling - same as Show text */
.auth-cancel-text {
    color: rgba(102, 102, 102, 0.80);
    text-align: center;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
    display: block;
    margin-top: 15px;
}

/* Red cancel/close text */
.auth-cancel-red {
    color: #dc3545;
    font-family: Poppins;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 8px;
    margin-top:15px!important;
}

/* OTP Number label */
.auth-otp-label {
    color: #666;
    font-family: Raleway;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 8px;
    display: block;
}

/* OTP inputs container */
.auth-otp-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

/* Individual OTP input fields */
.auth-otp-input {
    display: flex;
    width: 90px;
    height: 85px;
    padding: 10px;
    align-items: flex-start;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid rgba(102, 102, 102, 0.35);
    text-align: center;
    font-family: Raleway;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}

.auth-otp-input:focus {
    outline: none;
    border-color: rgba(102, 102, 102, 0.6);
}

/* Legacy support for existing login form structure */
.login-form {
    width: 100%;
    max-width: 539px;
    margin: 0;
    padding: 0;
}

.login-form .container {
    padding: 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
}

.login-form .row {
    margin: 0;
    padding: 0;
    justify-content: center;
    width: 100%;
}

.login-form .col-md-4 {
    max-width: 100%;
    flex: 0 0 100%;
    padding: 0;
    margin: 0;
}

.card-container {
    width: 100%;
}

/* Enhanced card styling - updated to use auth-container */
.card {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    height: 100%;
}

.card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Logo styling */
.login-form img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    max-width: 100%;
    height: auto;
}

/* Form elements */
.form-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(46, 54, 92, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 12px;
    color: #2E365C;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: #2E365C;
    box-shadow: 0 0 0 0.2rem rgba(46, 54, 92, 0.15);
}

.form-control::placeholder {
    color: rgba(46, 54, 92, 0.6);
}

/* Buttons */
.btn {
    font-size: 12px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #2E365C;
    color: white;
}

.btn-primary:hover {
    background-color: #1e2442;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 54, 92, 0.3);
}

.btn-secondary {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(108, 117, 125, 0.2);
}

/* Alerts */
.alert {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: none;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Text colors */
.text-danger {
    color: #dc3545 !important;
}

/* OTP Input styling */
.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid rgba(46, 54, 92, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
}

.otp-input:focus {
    border-color: #2E365C;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 0.2rem rgba(46, 54, 92, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Switch to mobile background image */

    .guest-main-container {
        padding: 1rem 0.5rem;
        min-height: calc(100vh - 60px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Responsive auth container */
    .auth-container {
        width: 90vw;
        max-width: 400px;
        height: auto;
        min-height: 500px;
        margin: 0 auto;
    }

    /* Responsive inner container */
    .auth-inner-container {
        margin: 60px 30px;
    }

    /* Responsive title */
    .auth-title {
        font-size: 28px;
    }

    /* Responsive send button */
    .auth-send-button {
        width: 100%;
        max-width: 350px;
    }

    /* Responsive OTP inputs */
    .auth-otp-input {
        width: 70px;
        height: 70px;
        font-size: 20px;
    }

    .card-body {
        padding: 1.5rem;
    }

    .login-form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .guest-main-container {
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .guest-footer {
        font-size: 14px;
        line-height: 1.4;
        min-height: 50px;
        height: auto;
        padding: 12px 15px;
        white-space: normal;
        word-wrap: break-word;
    }

    .guest-footer a,
    .guest-footer span {
        line-height: 1.4 !important;
        display: inline-block;
    }

    /* Mobile auth container */
    .auth-container {
        width: 95vw;
        max-width: 350px;
        min-height: 450px;
        border-radius: 16px;
    }

    /* Mobile inner container */
    .auth-inner-container {
        margin: 40px 20px;
    }

    /* Mobile title */
    .auth-title {
        font-size: 24px;
    }

    /* Mobile send button */
    .auth-send-button {
        width: 100%;
        max-width: 300px;
        padding: 12px 0 13px 0;
    }

    /* Mobile OTP inputs */
    .auth-otp-input {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }

    .card-body {
        padding: 1rem;
    }

    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    /* Responsive logo adjustments */
    .guest-logo {
        top: 20px;
        left: 20px;
    }

    .guest-logo img {
        width: 120px;
    }
}

/* Utility classes */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-6 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.d-flex { display: flex; }
.gap-2 { gap: 0.5rem; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.img-fluid { max-width: 100%; height: auto; }
.font-12 { font-size: 12px; }

/* Terms & Conditions Modal Styling */
.terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.terms-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    padding: 20px;
}

.terms-modal-content {
    background: #FFF;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terms-modal-header {
    padding: 24px 32px 16px 32px;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
}

.terms-modal-title {
    margin: 0;
    font-family: Raleway;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.terms-modal-body {
    padding: 24px 32px;
    overflow-y: auto;
    flex: 1;
    font-family: Raleway;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.terms-modal-body h1,
.terms-modal-body h2,
.terms-modal-body h3,
.terms-modal-body h4,
.terms-modal-body h5,
.terms-modal-body h6 {
    font-family: Raleway;
    font-weight: 600;
    color: #333;
    margin-top: 20px;
    margin-bottom: 12px;
}

.terms-modal-body p {
    margin-bottom: 12px;
}

.terms-modal-body ul,
.terms-modal-body ol {
    margin-bottom: 12px;
    padding-left: 20px;
}

.terms-modal-body li {
    margin-bottom: 6px;
}

.terms-modal-footer {
    padding: 20px 32px 24px 32px;
    border-top: 1px solid #E5E7EB;
    background: #F9FAFB;
    display: flex;
    justify-content: center;
}

.terms-accept-button {
    background: #2F375C;
    color: white;
    border: none;
    border-radius: 32px;
    padding: 14px 32px;
    font-family: Raleway;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
}

.terms-accept-button:hover {
    background: #252B47;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 55, 92, 0.3);
}

.terms-accept-button:active {
    transform: translateY(0);
}

/* Responsive modal styling */
@media (max-width: 991px) {
    .terms-modal-container {
        padding: 10px;
    }

    .terms-modal-content {
        max-height: 95vh;
        border-radius: 12px;
    }

    .terms-modal-header,
    .terms-modal-body,
    .terms-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .terms-modal-title {
        font-size: 20px;
    }

    .terms-accept-button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .terms-modal-header,
    .terms-modal-body,
    .terms-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .terms-modal-title {
        font-size: 18px;
    }

    .terms-modal-body {
        font-size: 13px;
    }
}

/* Error/Info Component Styling */
.error-info-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.error-info-title {
    font-family: Raleway;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 16px;
}

.error-info-message {
    font-family: Raleway;
    font-size: 16px;
    font-weight: 400;
    color: #555;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 32px;
}

.error-info-contact {
    margin-bottom: 24px;
}

.contact-intro {
    font-family: Raleway;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-bottom: 16px;
    margin: 0 0 16px 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Raleway;
    font-size: 14px;
    font-weight: 500;
    color: #2F375C;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #394164;
    text-decoration: underline;
}

.contact-link svg {
    flex-shrink: 0;
}

.error-info-apology {
    font-family: Raleway;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-bottom: 24px;
    font-style: italic;
}

.error-info-actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.error-info-actions .auth-send-button {
    text-decoration: none;
    display: inline-flex;
    margin-top: 0;
}

/* Responsive error/info styling */
@media (max-width: 768px) {
    .error-info-title {
        font-size: 24px;
    }

    .error-info-message {
        font-size: 15px;
    }

    .contact-details {
        gap: 10px;
    }

    .contact-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .error-info-icon svg {
        width: 48px;
        height: 48px;
    }

    .error-info-title {
        font-size: 20px;
    }

    .error-info-message {
        font-size: 14px;
    }

    .contact-link svg {
        width: 16px;
        height: 16px;
    }
}

/* Reset Password Modal Styling */
.reset-password-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.reset-password-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    padding: 20px;
}

.reset-password-modal-content {
    background: #FFF;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reset-password-modal-header {
    padding: 24px 32px 16px 32px;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reset-password-modal-title {
    margin: 0;
    font-family: Raleway;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.reset-password-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    color: #6B7280;
    transition: all 0.2s ease;
}

.reset-password-modal-close:hover {
    background: #E5E7EB;
    color: #374151;
}

.reset-password-modal-body {
    padding: 32px;
    flex: 1;
    overflow-y: auto;
}

.reset-password-modal-footer {
    padding: 20px 32px 24px 32px;
    border-top: 1px solid #E5E7EB;
    background: #F9FAFB;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.reset-password-cancel-button {
    background: #F3F4F6;
    color: #374151;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 10px 20px;
    font-family: Raleway;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-password-cancel-button:hover {
    background: #E5E7EB;
    border-color: #9CA3AF;
}

.reset-password-modal-footer .auth-send-button {
    margin-top: 0;
    padding: 10px 20px;
    font-size: 14px;
    width: auto;
    min-width: 140px;
}

.status-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-family: Raleway;
    font-size: var(--font-14);
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid;
    width: 100%;
    box-sizing: border-box;
}

.status-message.error {
    background-color: #fee2e2; /* Light red background */
    color: #991b1b!important;; /* Dark red text */
    border-color: #ef4444 /* Red border */
}

@media (max-width: 991px) {
    body.client-portal-guest {
        background-image: url('/img/backgrounds/mobile-auth.webp');
        background-position: bottom left;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    /* Fix for mobile viewport height issues */
    html {
        height: -webkit-fill-available;
    }

    /* Mobile sticky title area */
    .mobile-title-area {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 300;
        display: flex !important; /* Override desktop display: none */
        width: 100%;
        max-width: 393px;
        height: 65px;
        padding: 8px 11px;
        flex-direction: column;
        background: #FFF;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
        margin: 0 auto;
    }

    /* Hide desktop guest logo on mobile */
    .guest-logo {
        display: none;
    }

    /* Mobile logo inside title area */
    .mobile-title-area .mobile-guest-logo {
        display: block;
    }

    .mobile-title-area .mobile-guest-logo img {
        width: 46px;
        height: 48px;
        aspect-ratio: 23/24;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    }

    /* Show mobile-only elements and hide desktop-only elements */
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* Mobile guest main container spacing - 20px gap from welcome heading */
    .guest-main-container {
        margin-top: 20px;
        padding-top: 0;
        align-items: flex-start;
        padding-bottom: 40px;
    }

    /* Remove any extra margins from auth container on mobile */
    .auth-container {
        margin-top: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .reset-password-modal-container {
        padding: 10px;
    }

    .reset-password-modal-content {
        max-height: 95vh;
        border-radius: 12px;
    }

    .reset-password-modal-header,
    .reset-password-modal-body,
    .reset-password-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .reset-password-modal-title {
        font-size: 18px;
    }

    .reset-password-modal-footer {
        flex-direction: column;
        gap: 8px;
    }

    .reset-password-cancel-button,
    .reset-password-modal-footer .auth-send-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .reset-password-modal-header,
    .reset-password-modal-body,
    .reset-password-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .reset-password-modal-title {
        font-size: 16px;
    }
}
