/*
 * Severn Trent Water – Auth server theme
 * Replicates styling of https://myaccount-test.stwater.co.uk/sign-in
 * Primary accent: dark teal/blue #003E52 (button, links). Logo: blue + green #6DB240.
 */

:root {
    --stw-teal: #003e52;
    --stw-teal-hover: #00caaf;
    --stw-green: #6db240;
    --stw-text: #333333;
    --stw-text-muted: #888888;
    --stw-border: #d1d1d1;
    --stw-bg-page: #f8f8f8;
    --stw-bg-input: #ffffff;
    --stw-focus-ring: rgba(0, 62, 82, 0.25);
}

/* Page background */
body {
    color: var(--stw-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--stw-bg-page);
}

/* Centred card container */
.card-wrap {
    background-color: var(--stw-bg-page);
}

/* Login card – white, subtle shadow (match original) */
.card-design {
    background-color: var(--stw-bg-input);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 40px 32px;
    max-width: 100%;
}

/* Logo in card */
.logo,
div.heading object {
    margin-bottom: 24px;
    max-height: 82px;
    width: auto;
    height: auto;
}

/* Main heading: "Log in to your account" */
.auth-header {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--stw-text);
    margin-bottom: 24px;
    line-height: 1.3;
}

/* Form layout */
.form-wrap {
    width: 100%;
    max-width: 400px;
}

/* Form groups – email, password */
.form-group {
    margin-bottom: 20px;
}

.form-group > label {
    display: block;
    margin-bottom: 6px;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--stw-text);
}

/* Inputs – email and password (light grey border, rounded) */
.form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 1.6rem;
    color: var(--stw-text);
    background-color: var(--stw-bg-input);
    border: 1px solid var(--stw-border);
    border-radius: 5px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control::placeholder {
    color: var(--stw-text-muted);
}

.form-control:hover {
    border-color: #999999;
}

.form-control:focus {
    outline: none;
    border-color: var(--stw-teal);
    box-shadow: 0 0 0 3px var(--stw-focus-ring);
}

/* "Need help logging in?" link – left-aligned like original */
.link-wrapper#password-reset {
    text-align: left;
    margin-top: 12px;
    margin-bottom: 0;
}

#password-reset a {
    color: var(--stw-teal);
    text-decoration: underline;
    font-size: 1.4rem;
}

#password-reset a:hover {
    color: var(--stw-teal-hover);
}

/* Button group – "Log in" */
.button-one-line-group {
    margin-top: 24px;
    margin-bottom: 0;
}

.button,
.button--primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--stw-teal);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    text-transform: none;
    letter-spacing: 0.02em;
    transition: background-color 0.15s ease;
}

.button:hover,
.button--primary:hover {
    background-color: var(--stw-teal-hover);
    color: #000000;
}

.button:focus,
.button--primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--stw-teal-hover);
}

/* "Already a customer... Register your online account" */
.link-wrapper.pt-md#not-a-customer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
}

#not-a-customer p {
    font-size: 1.4rem;
    color: var(--stw-text);
    margin: 0;
}

#not-a-customer a {
    color: var(--stw-teal);
    text-decoration: underline;
}

#not-a-customer a:hover {
    color: var(--stw-teal-hover);
}

/* Error alert (no HTML change – style existing class) */
.authserver-alert {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.authserver-closebtn {
    color: #991b1b;
}

/* Backup tokens / 2FA steps – keep consistent */
.form-group .form-control.error {
    border-color: #dc2626;
}

/* Footer area (empty in template but ensure no stray styles) */
footer {
    color: var(--stw-text-muted);
    font-size: 1.2rem;
}

/* Optional: extra spacing for 2FA step text when shown */
.card-design > p {
    color: var(--stw-text);
    margin-bottom: 16px;
}
