/* Login page — PBI #45359 */

/* Background image (login page only — this CSS is only loaded on /Login) */
body {
    background-image: url("https://znodestorageproduction.blob.core.windows.net/ad-b2c/CTDirect/images/background.jpg");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.login-page {
    max-width: 460px;
    margin: 0 auto;
    padding: 48px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Card component */
.login-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.login-card__header {
    background: #f8f8f8;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

.login-logo {
    width: 169px;
    height: auto;
    mix-blend-mode: multiply;
}

.login-card__body {
    padding: 24px;
}

/* Title */
.login-card__title {
    font-size: 15px;
    font-weight: 500;
    color: #262626;
    margin: 0 0 20px;
    text-align: center;
}

/* Error message */
.login-card__error {
    background: #FDF2F4;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.login-card__error p {
    color: #C4112F;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Form fields */
.login-field {
    margin-bottom: 16px;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 6px;
}

.login-field__input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #262626;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.login-field__input:focus {
    border-color: #C4112F;
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 17, 47, 0.12);
}

.login-field__input::placeholder {
    color: #999;
}

/* Password label row (label + forgot link) */
.login-field__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.login-field__row label {
    margin-bottom: 0;
}

.login-forgot-link {
    font-size: 13px;
    color: #C4112F;
    text-decoration: none;
}

.login-forgot-link:hover {
    text-decoration: underline;
    color: #a50e27;
}

/* Submit button */
.login-btn {
    display: block;
    width: 100%;
    padding: 13px;
    background: #C4112F;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    margin-top: 20px;
}

.login-btn:hover {
    background: #a50e27;
}

.login-btn:focus-visible {
    outline: 2px solid #C4112F;
    outline-offset: 2px;
}

/* Register nudge */
.login-register-nudge {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 20px 0 0;
}

.login-register-nudge a {
    color: #C4112F;
    font-weight: 600;
    text-decoration: none;
}

.login-register-nudge a:hover {
    text-decoration: underline;
    color: #a50e27;
}

/* Error containers (noscript / no-cookie) */
.login-error-container {
    max-width: 460px;
    margin: 40px auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-error-container h1 {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
    margin: 0 0 12px;
}

.login-error-container p {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 8px;
}

.login-error-container p:last-child {
    margin-bottom: 0;
}

.no_display {
    display: none;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        background-image: none;
        background-color: #f2f2f2;
    }

    .login-page {
        padding: 24px 0 0;
    }

    .login-card {
        border: none;
        border-radius: 0;
    }

    .login-card__header {
        border-radius: 0;
    }

    .login-card__body {
        padding: 20px 16px;
    }

    .login-error-container {
        margin: 20px 16px;
    }
}
