/* ============================================================================
   CCL Connect - shared styling for the authentication screens
   (login, password reminder, password reset, MFA/2FA).

   Design tokens match the corporate email template so mails and screens read
   as one system:
     primary  #2b7de9      navy      #0a1f3f
     page bg  #f0f2f5      panel bg  #f7f9fc
     text     #4a5568      heading   #0a1f3f      border #e2e8f0

   Everything here is plain CSS in the repo - no database content involved.
   ============================================================================ */

body {
    background-color: #f0f2f5 !important;
    background-image: none !important;
}

#body-wrapper {
    background-color: transparent !important;
    background: none !important;
}

#body {
    background-color: transparent !important;
}

/* --- header: logos on a light panel + blue accent line (as in the emails) --- */

#header-wrapper {
    background-color: #ffffff;
    border-bottom: 4px solid #2b7de9;
}

/* --- page shell ---------------------------------------------------------- */

.auth-page {
    font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    color: #4a5568;
    padding: 36px 16px 56px;
    max-width: 1180px;
    margin: 0 auto;
}

.auth-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    justify-content: center;
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(10, 31, 63, 0.10);
    padding: 32px 36px;
    box-sizing: border-box;
    flex: 1 1 340px;
    max-width: 460px;
    animation: authCardIn .22s ease-out;
}

/* the wider companion card holding editorial content */
.auth-card--wide {
    flex: 2 1 460px;
    max-width: 680px;
    color: #4a5568;
    line-height: 1.6;
}

.auth-card--single {
    max-width: 560px;
    margin: 0 auto;
}

/* the MFA layout renders a single card straight into #mainContent */
#mainContent {
    display: flex;
    justify-content: center;
    padding: 36px 16px 56px;
}

#mainContent > .auth-card {
    max-width: 680px;
    width: 100%;
}

@keyframes authCardIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* --- typography ---------------------------------------------------------- */

.auth-card h1,
.auth-card h2,
.auth-card h3 {
    margin: 0 0 10px;
    color: #0a1f3f;
    font-weight: 600;
    line-height: 1.3;
}

.auth-card h2 { font-size: 22px; }
.auth-card h3 { font-size: 18px; }

.auth-subtitle {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
}

.auth-note {
    font-size: 13px;
    line-height: 1.6;
    color: #718096;
    margin: 0 0 18px;
}

.auth-steps {
    margin: 0 0 20px 18px;
    padding: 0;
    line-height: 1.7;
    color: #4a5568;
}

.auth-steps li { margin-bottom: 6px; }

/* --- form fields --------------------------------------------------------- */

.auth-field { margin-bottom: 18px; }

.auth-field label,
.auth-card label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
}

.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"],
.auth-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    padding: 16px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #2d3748;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.auth-card input[type="text"]:focus,
.auth-card input[type="password"]:focus,
.auth-card input[type="email"]:focus,
.auth-input:focus {
    border-color: #2b7de9;
    box-shadow: 0 0 0 3px rgba(43, 125, 233, 0.18);
}

/* one-time code: big, centred, spaced out */
.auth-input--code {
    max-width: 320px;
    font-size: 20px;
    letter-spacing: 6px;
    text-align: center;
    font-family: Consolas, "Courier New", monospace;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    font-size: 14px;
    color: #4a5568;
}

.auth-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #2b7de9;
}

.auth-check label {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    color: #4a5568;
}

/* --- buttons ------------------------------------------------------------- */

.auth-card input[type="submit"],
.auth-btn,
.auth-card button.auth-primary {
    display: inline-block;
    background: #2b7de9;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, transform .05s;
}

.auth-card input[type="submit"]:hover,
.auth-btn:hover,
.auth-card button.auth-primary:hover { background: #1f66c4; color: #fff; }

.auth-card input[type="submit"]:active,
.auth-btn:active,
.auth-card button.auth-primary:active { transform: translateY(1px); }

.auth-btn--ghost {
    background: #f7f9fc;
    color: #2b7de9;
    border: 1px solid #cbd5e0;
}

.auth-btn--ghost:hover { background: #eef3f9; color: #1f66c4; }

.auth-icon-btn {
    background: #f7f9fc;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 5px 10px;
    color: #2b7de9;
    cursor: pointer;
    vertical-align: middle;
    transition: background .15s;
}

.auth-icon-btn:hover { background: #eef3f9; }

.auth-actions { margin-top: 20px; }

.auth-link {
    display: inline-block;
    margin-top: 18px;
    font-size: 14px;
    color: #2b7de9;
    text-decoration: none;
    border-bottom: 1px dotted #2b7de9;
}

.auth-link:hover { color: #1f66c4; text-decoration: none; }

/* --- messages ------------------------------------------------------------ */

.auth-alert {
    margin-top: 18px;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.55;
    background: #fdf1f1;
    border: 1px solid #eec4c4;
    color: #9c2f2f;
}

.auth-alert strong { color: #7c1f1f; }

.auth-alert--info {
    background: #eef5fd;
    border-color: #c3dbf7;
    color: #1f4f8f;
}

.auth-alert--warning {
    background: #fdf6e7;
    border-color: #f0dcae;
    color: #8a6111;
}

/* validation summary produced by MVC helpers */
.auth-card .validation-summary-errors,
.auth-card .field-validation-error {
    color: #9c2f2f;
    font-size: 13px;
}

.auth-card .validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

/* --- misc panels --------------------------------------------------------- */

.auth-code-box {
    display: inline-block;
    background: #f7f9fc;
    border: 1px dashed #b7cfda;
    border-radius: 8px;
    padding: 6px 12px;
    font-family: Consolas, monospace;
    letter-spacing: 1px;
    color: #2d3748;
}

.auth-qr-frame {
    display: inline-block;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f7f9fc;
    margin: 10px 0;
}

/* content coming from the CMS documents keeps its own markup - just give it
   sane defaults inside the card */
.auth-content img { max-width: 100%; height: auto; }
.auth-content a { color: #2b7de9; }

/* --- footer bar (mirrors the dark bar closing the emails) ----------------- */

footer {
    border-top: 8px solid #0a1f3f;
    margin-top: 10px;
    background: transparent;
}

footer p { color: #718096; font-size: 12px; }

footer .auth-footer-link { color: #718096; text-decoration: underline; }
footer .auth-footer-link:hover { color: #4a5568; }

/* --- responsive ---------------------------------------------------------- */

@media screen and (max-width: 700px) {
    .auth-page { padding: 20px 12px 40px; }
    .auth-card { padding: 24px 20px; border-radius: 12px; }
    .auth-layout { gap: 16px; }
}
