/* ==========================================================================
   CLOUD CLINIC ERP - MODERN LOGIN SPLIT INTERFACE BLUEPRINT (index.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-app: #f8fafc;
    --primary: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-app);
    min-height: 100vh;
    overflow-x: hidden;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* --- LEFT SIDE: COMPREHENSIVE BRAND SHOWCASE --- */
.brand-showcase {
    flex: 1.1;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    color: #fff;
    overflow: hidden;
}

/* Soft technical geometric mesh look background vectors using css */
.brand-showcase::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.showcase-content {
    max-width: 560px;
    margin-top: auto;
    margin-bottom: auto;
    z-index: 5;
}

.main-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.showcase-content h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.showcase-content h1 span {
    color: #3b82f6; /* Accent color matching cloud system graphics */
}

.showcase-content p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.feature-pills {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.feature-pills .pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
}
.feature-pills .pill i {
    color: #10b981; /* Healthy green status verification indicators */
}

.branding-footer {
    font-size: 12px;
    color: #64748b;
    z-index: 5;
    letter-spacing: 0.5px;
}
.branding-footer b { color: #94a3b8; }


/* --- RIGHT SIDE: SECURE ACCESS BLOCK --- */
.form-container-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: #ffffff;
}

.login-box-card {
    width: 100%;
    max-width: 440px;
}

.login-header-area {
    margin-bottom: 30px;
}

.app-logo {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
}

.login-header-area h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.login-header-area p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ERROR BANNER STYLING */
.alert-banner {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    animation: shake 0.4s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* FORM ELEMENTS LOOK */
.input-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.input-field-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

.input-wrapper-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}

.input-wrapper-inner input {
    width: 100%;
    padding: 11px 16px 11px 42px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    background-color: #fff;
    transition: all 0.2s ease;
}

.input-wrapper-inner input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background-color: #fff;
}

/* Toggle eye parameters look control */
.toggle-eye-icon {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

.form-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}
.checkbox-remember input {
    accent-color: var(--accent);
    width: 15px;
    height: 15px;
}

/* ACTION CONTROLLER LOG BUTTONS */
.btn-login-submit {
    width: 100%;
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.1s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-login-submit:hover {
    background-color: var(--accent-hover);
}
.btn-login-submit:active {
    transform: scale(0.99);
}

.divider-line {
    text-align: center;
    position: relative;
    margin: 25px 0;
}
.divider-line::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #e2e8f0;
    left: 0;
    top: 50%;
    z-index: 1;
}
.divider-line span {
    background-color: #fff;
    padding: 0 12px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.btn-otp-fallback {
    width: 100%;
    background-color: #fff;
    color: #334155;
    border: 1px solid var(--border-color);
    padding: 11px 24px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}
.btn-otp-fallback:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

/* ==========================================================================
   RESPONSIVE LAYOUT MATRIX FOR DEVICE CORES
   ========================================================================== */

@media (max-width: 900px) {
    .brand-showcase {
        display: none; /* Drop visualization mesh layout on tablets/phones to focus form inputs */
    }
    .form-container-block {
        padding: 20px;
    }
}