/* ==========================================================================
   Login
   ========================================================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eeeeee;
}

.login-card {
    position: relative;
    width: 720px;
    background: var(--surface);
    border: 1px solid #4aa9b6;
    box-shadow: 0 10px 30px rgba(31, 41, 51, 0.18);
    overflow: hidden;
}

/* Saturated teal hero and footer bands, as on the original console. */
.login-hero {
    position: relative;
    height: 160px;
    background: #55bdca;
    border-bottom: 3px solid #ffffff;
    overflow: hidden;
}

.login-hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* The stethoscope spans the hero width; the tube sweeps down and out at the bottom, where the
   white body panel below covers its middle - so the tubing reads as passing behind the panel,
   re-emerging at the chestpiece in the footer, exactly as the reference does. */
.login-stethoscope {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.login-hero-text {
    position: absolute;
    right: 28px;
    top: 20px;
    width: 250px;
    margin: 0;
    z-index: 2;
    font-size: 12px;
    color: #0c454d;
    line-height: 1.6;
    text-align: justify;
}

.login-body {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 28px;
    padding: 22px 28px;
    background: var(--surface);
}

.login-brand { display: flex; align-items: center; gap: 12px; width: 300px; }
.login-brand-logo { width: 66px; height: 66px; object-fit: contain; }
.login-brand-name { font-size: 22px; font-weight: 700; color: var(--brand-blue); }
.login-brand-subtitle { font-size: 12px; color: #6e8b3d; }

.login-form { flex: 1; }
.login-form-row { display: flex; align-items: center; margin-bottom: 8px; }
.login-form-row label { width: 96px; font-size: 12px; }

.login-form-row input {
    flex: 1;
    height: 24px;
    padding: 0 6px;
    border: 1px solid var(--input-border);
    border-radius: 2px;
    font-size: 12px;
}

.login-form-row input[readonly] { background: #eef2f6; color: var(--ink-muted); }
.login-error { color: var(--brand-red); font-size: 12px; margin: 4px 0 6px 96px; }
.login-checkbox-row { display: flex; align-items: center; gap: 6px; margin: 8px 0 12px 96px; font-size: 12px; }
.login-buttons { display: flex; gap: 10px; margin-left: 96px; }

.btn-dark {
    min-width: 84px;
    height: 26px;
    background: linear-gradient(#5a6672, #3c4753);
    border: 1px solid #2b333c;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
}

.btn-dark:hover { background: linear-gradient(#687583, #46525f); }

.login-footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    min-height: 92px;
    padding: 14px 28px 18px;
    background: #55bdca;
    border-top: 3px solid #ffffff;
    overflow: hidden;
}

.login-footer-left { position: relative; z-index: 2; }

.login-footer-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f4046;
    border-bottom: 1px solid #0f4046;
    padding-bottom: 2px;
    display: inline-block;
}

.login-footer-copy { font-size: 11px; color: #124e56; margin-top: 4px; }

/* The chestpiece sits in the bottom-right of the footer where the tube re-emerges. */
.login-chestpiece {
    position: absolute;
    right: 18px;
    bottom: 0;
    width: 200px;
    height: 100px;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}
