/*! tailwindcss v4.0.7 | MIT License | https://tailwindcss.com */
@layer theme {
    :root, :host {
        --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
        --color-blue-600: #1e40af;
        --color-blue-700: #1e3a8a;
        --color-gray-100: #f3f4f6;
        --color-gray-200: #e5e7eb;
        --color-gray-300: #d1d5db;
        --color-gray-400: #9ca3af;
        --color-gray-500: #6b7280;
        --color-gray-600: #4b5563;
        --color-gray-700: #374151;
        --color-gray-900: #111827;
    }
}
* {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: var(--font-sans);
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: url('../images/patient_background.png');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.pattern-bg {
    background-color: transparent;
    background-image: url('../images/patient_background.png');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Illustration (left) */
.illustration-section { 
    background: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.left-content {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .left-content {
        padding: 40px 30px;
        max-width: 100%;
    }
}

/* Slider Styles */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 30px;
    overflow: hidden;
}
.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 400%;
}
.slider-slide {
    width: 25%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.slider-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 700px;
    max-height: 400px;
    margin-bottom: 30px;
}
.slider-text {
    text-align: center;
    width: 100%;
}
.slider-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}
.slider-description {
    font-size: 1rem;
    color: #6b7280;
    max-width: 380px;
    margin: 0 auto;
}
.slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #d1d5db;
    transition: all 0.3s ease;
    cursor: pointer;
}
.slider-dot.active {
    background: #1e3a8a;
    width: 24px;
    border-radius: 4px;
}

/* Form controls */
.input { 
    border: 1px solid #dfe4f2; 
    color: #111827; 
    background-color: #f5f7ff !important; 
    padding: 11px 15px; 
    border-radius: 8px; 
    width: 100%; 
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s, background-color .2s; 
    min-height: 44px;
}
/* intl-tel-input styling */
.iti {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}
.iti__flag-container {
    left: 0;
}
.iti__selected-flag {
    padding: 0 8px 0 12px;
    border-radius: 8px 0 0 8px;
    background-color: #f5f7ff;
    height: 44px;
    display: flex;
    align-items: center;
}
.iti__selected-flag:hover {
    background-color: #eef2ff;
}
.iti input {
    padding-left: 52px !important;
    min-height: 44px;
    height: 44px;
    margin: 0;
}
.iti input:focus {
    padding-left: 52px !important;
}
.iti__country-list {
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
/* Ensure grid items align properly */
.grid-2 > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.grid-2 > div > label {
    margin-bottom: 8px;
    width: 100%;
}
.grid-2 > div > .input,
.grid-2 > div > .iti {
    width: 100%;
    margin-top: 0;
}
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px #f5f7ff inset !important;
    -webkit-text-fill-color: #111827 !important;
    caret-color: #111827 !important;
    border: 1px solid #dfe4f2 !important;
}
.input:-moz-autofill {
    box-shadow: 0 0 0 1000px #f5f7ff inset !important;
    -moz-text-fill-color: #111827 !important;
}
.input::placeholder {
    color: #9aa1b3;
    font-size: 14px;
}
.input:focus { 
    outline: none; 
    border-color: #1e3a8a; 
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12); 
    background-color: #ffffff !important;
}
.input:hover:not(:focus) {
    border-color: #d1d5db;
}
.input-group { 
    position: relative; 
    display: flex;
    align-items: center;
}
.input-group .input { 
    padding-right: 40px !important; 
}
.input-group .toggle-btn { 
    position: absolute; 
    right: 12px; 
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    margin: 0;
    z-index: 1;
    width: 20px;
    height: 20px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-btn {
    color: #9ca3af;
    transition: color .2s;
}
.toggle-btn:hover { 
    color: #6b7280; 
}
.toggle-btn:focus { 
    outline: none; 
    box-shadow: none; 
}
.toggle-icon { 
    width: 20px; 
    height: 20px; 
    display: block;
    stroke: currentColor;
    fill: none;
}
label + input { margin-top: 8px; display: block; }
label + .input-group { margin-top: 8px; display: block; }
label + select, label + textarea { margin-top: 8px; display: block; }
.sep-line {
    height: 1px;
    background: #e5e7eb;
    flex: 1;
    max-width: 197px;
}
.icon-badge {
    width: 28px; height: 28px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; background: #f3f4f6; margin-right: 8px;
}
.btn-primary { 
    background-color: #1e3a8a; 
    color: #ffffff; 
    padding: 12px 20px; 
    border-radius: 8px; 
    width: 100%; 
    font-weight: 600; 
    font-size: 15px;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all .2s; 
}
.btn-primary:hover { 
    background-color: #1e40af; 
}
.btn-primary:active {
    transform: scale(0.98);
}
.form-wrap { 
    width: 100%; 
    max-width: 540px; 
    margin: 0 auto; 
}
.muted { 
    color: #6b7280; 
    font-size: 14px;
}
.mb-6 { margin-bottom: 16px !important; }
.mb-5 { margin-bottom: 16px !important; }
.mb-8 { margin-bottom: 32px !important; }
.brand { 
    color: #1e3a8a; 
    font-size: 24px;
}
.social-btn {
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #374151;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 44px;
    width: 100%;
}
.social-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}
.social-btn:active {
    background-color: #f3f4f6;
}
.social-btn svg {
    flex-shrink: 0;
}
.social-btn .google-logo {
    width: 20px;
    height: 20px;
}
.social-btn .facebook-logo {
    width: 20px;
    height: 20px;
}
.grid.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 480px) {
    .grid.grid-cols-2 {
        gap: 8px;
    }
    .social-btn span {
        font-size: 11px;
    }
    .social-btn .google-logo,
    .social-btn .facebook-logo {
        width: 16px;
        height: 16px;
    }
}
.btn-gap {
    margin-top: 16px;
}
.btn-secondary {
    background-color: #1e3a8a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    width: 100%;
    font-weight: 600;
    font-size: 15px;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all .2s;
}
.btn-secondary:hover {
    background-color: #1e40af;
}
.btn {
    background-color: #1e3a8a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    width: 100%;
    font-weight: 600;
    font-size: 15px;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all .2s;
}
.btn:hover {
    background-color: #1e40af;
}
.input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #f5f7ff !important;
}
.input[type="date"]:focus {
    background-color: #ffffff !important;
}
/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 50;
}
.modal-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid #eef1f6;
    padding: 32px 26px;
    position: relative;
    text-align: center;
}
.modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    border: none;
    background: #ffffff;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #6b7280;
    cursor: pointer;
}
.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}
.badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}
.badge svg {
    width: 28px;
    height: 28px;
}
.section-divider { 
    display: none; 
}
@media (min-width: 1024px) {
    .auth-container { 
        position: relative; 
    }
    .section-divider {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 52%;
        width: 1px;
        background: #e5e7eb;
        opacity: .9;
        z-index: 1;
    }
}

.auth-form-section {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 40px;
    overflow-y: visible;
    overflow-x: hidden;
}
@media (min-width: 1024px) {
    .auth-form-section {
        padding: 50px 50px;
        min-height: 100%;
        display: flex;
        align-items: center;
    }
}

.auth-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    max-width: 1400px;
    margin: 20px auto;
    max-height: calc(100vh - 40px);
    height: calc(100vh - 40px);
}

@media (max-width: 640px) {
    body {
        padding: 10px !important;
    }
    body > div {
        padding: 10px !important;
    }
    .auth-container {
        margin: 10px 0 !important;
        border-radius: 12px;
        min-height: auto !important;
        max-height: calc(100vh - 20px) !important;
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
    }
    .illustration-section {
        display: none !important;
    }
    .auth-form-section {
        width: 100% !important;
        padding: 30px 20px !important;
        min-height: auto !important;
    }
    .auth-form-section > div {
        width: 100% !important;
        max-width: 100% !important;
    }
    .grid.grid-cols-2 {
        grid-template-columns: 1fr 1fr !important;
    }
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .input {
        padding: 13px 15px !important;
        font-size: 16px !important;
        width: 100% !important;
    }
    .btn-primary {
        padding: 14px 20px !important;
        font-size: 16px !important;
        width: 100% !important;
    }
    .social-btn {
        padding: 12px 14px !important;
        font-size: 13px !important;
        min-height: 48px !important;
        width: 100% !important;
    }
    .left-content {
        padding: 40px 20px !important;
    }
    .brand {
        font-size: 20px !important;
    }
    h1.brand {
        font-size: 20px !important;
    }
    .text-2xl {
        font-size: 1.5rem !important;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    body {
        padding: 15px !important;
    }
    .auth-container {
        margin: 20px auto !important;
        min-height: auto !important;
        max-height: calc(100vh - 40px) !important;
        width: calc(100% - 40px) !important;
        max-width: 100% !important;
    }
    .illustration-section {
        display: none !important;
    }
    .auth-form-section {
        width: 100% !important;
        padding: 40px 50px !important;
        min-height: auto !important;
    }
    .auth-form-section > div {
        max-width: 600px !important;
    }
    .input {
        font-size: 16px !important;
    }
}

@media (min-width: 1024px) {
    .auth-container {
        flex-direction: row !important;
        width: calc(100% - 80px) !important;
        max-width: 1400px !important;
        max-height: calc(100vh - 40px) !important;
        height: calc(100vh - 40px) !important;
    }
    .illustration-section {
        display: flex !important;
        width: 52% !important;
        flex-shrink: 0;
        overflow-y: visible;
        overflow-x: hidden;
    }
    .auth-form-section {
        width: 48% !important;
        flex-shrink: 0;
        overflow-y: visible;
        overflow-x: hidden;
    }
}

@media (min-width: 1280px) {
    .auth-container {
        max-width: 1400px;
    }
}

