/* ============================================================
   Login Page — Token Entry (home)
   Brand: text #333E52 | bg #EDEDED | card #FFFFFF | btn #2046E5
   ============================================================ */

:root {
    --primarycolor:          #333E52;
    --secondarycolor:        #F0F3FF;
    --tertiarycolor:         #CBD5E1;
    --bgcolor_btn_sav:       #2046E5;
    --bgcolor_btn_sav_hover: #1538C2;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #EDEDED;
    color: #333E52;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Background motif (2026-08-10): subtle network/node graphic behind the card, corner-anchored,
   low opacity so it never competes with the form. Lives at the webMobile docroot root (NOT
   param/{site}/), same generic non-per-client location confirmed in the prior diagnosis --
   applied identically to devdoctor's app/public_login/home/main.css. */
body::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 480px;
    height: 407px;
    background-image: url('motif-network.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}
.page-header, .page-main, .page-footer {
    position: relative;
    z-index: 1;
}

/* ---- Page header ---- */
.page-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header .header-logo {
    /* Sizing fix (2026-07-26): 36px->30px (~17% reduction), scoped to this page's own
       main.css only -- so it sits more proportionally with the lang switcher next to it.
       Source image untouched, CSS-only change. */
    height: 30px;
    width: auto;
}

.lang-switcher {
    display: flex;
    gap: 6px;
}

.lang-switcher a {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
    color: #94A3B8;
    transition: background 0.15s, color 0.15s;
}

.lang-switcher a.active {
    background-color: #2046E5;
    color: #FFFFFF;
}

/* ---- Main / card area ---- */
.page-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.login-container {
    background-color: #FFFFFF;
    border-radius: 24px;
    padding: 36px 32px 32px;
    box-shadow: 0 4px 24px rgba(51, 62, 82, 0.08);
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.logo {
    height: 48px;
    width: auto;
    max-width: 220px;
    margin: 0 auto 24px;
    display: block;
}

h2 {
    color: #333E52;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 20px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

form label {
    font-weight: 600;
    font-size: 0.8rem;
    text-align: left;
    margin: 12px 0 4px;
    color: #333E52;
    letter-spacing: 0.02em;
}

form input[type="text"],
form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    font-size: 0.95rem;
    background-color: #F8FAFF;
    color: #333E52;
    outline: none;
    transition: border-color 0.2s;
}

form input[type="text"]:focus,
form input[type="email"]:focus {
    border-color: #2046E5;
    background-color: #FFFFFF;
}

form input::placeholder { color: #94A3B8; }

form button {
    width: 100%;
    padding: 14px;
    background-color: #2046E5;
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 10px 20px -4px rgba(32, 70, 229, 0.25);
    transition: background-color 0.2s, transform 0.1s;
}

form button:hover  { background-color: #1538C2; }
form button:active { transform: scale(0.98); }

.field_required { color: #EF4444; margin-left: 2px; }

.info-message {
    font-size: 0.82rem;
    color: #64748B;
    background-color: #F0F3FF;
    padding: 10px 14px;
    border-radius: 10px;
    margin: 8px 0;
    text-align: left;
    line-height: 1.5;
}

/* ---- Footer ---- */
.page-footer {
    padding: 14px 20px;
    text-align: center;
    border-top: 1px solid #E2E8F0;
    background: #FFFFFF;
}

.page-footer p {
    margin: 0;
    font-size: 0.72rem;
    color: #747474;
    line-height: 1.6;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.footer-logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-logo {
    height: 36px;
    width: auto;
}
.footer-brand {
    font-size: 0.85rem;
    color: #666;
}
.footer-disclaimer {
    font-size: 0.72rem;
    color: #747474;
    margin: 0;
}

/* Site-wide unification pass (2026-08-29, devdoctor/devmobile ONLY -- .pl-devsite, added to
   <body> by this page's own main.js). Base rule above is shared by all 4 hostnames and its
   literal #2046E5 was left untouched deliberately -- findel/drfindel keep their exact current
   button colour. */
.pl-devsite form button {
    background-color: #2450E6;
}
.pl-devsite form button:hover {
    background-color: #1836B8;
}
/* Stage 2 (2026-09-03): same corner motif as the doctor login (body::before, right:-60px) made the document
   60px wider than the viewport (measured scrollWidth 1004 vs 944). Pinned inside the edge on devsite;
   findel/drfindel keep the base rule. */
body.pl-devsite::before {
    top: 0;
    right: 0;
}
