@import "loginStyles.css";

:root {
    --color-midnight: #002F45;
    --font-family--primary: mr-eaves-xl-sans, 'Open Sans', sans-serif;
}

body {
    margin-top: 0 !important;
    font-family: var(--font-family--primary) !important;
    min-height: 100vh;
    height: 100%;
    color: var(--login-body-text);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    background: var(--login-page-bg) !important;
}

.card input,
.card select,
.card textarea {
    background-color: var(--login-input-bg);
    color: var(--login-body-text);
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px var(--login-autofill-bg) inset;
    -webkit-text-fill-color: var(--login-autofill-text);
}

.navbar-header,
.navbar {
    display: none !important;
}

/* Header */
.navigation-header {
    background: var(--login-nav-bg);
    border-bottom: 9px solid #004C6A;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 16px 24px;
    width: 100%;
}

/* Content area */
.content-body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    flex: 1;
    padding: 40px 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Login card */
.card {
    width: 520px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid var(--login-card-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background-color: var(--login-card-bg);
    border-radius: 16px;
    padding: 48px;
    box-sizing: border-box;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.card h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Form inputs */
.card .form-control {
    border: 1px solid var(--login-input-border);
    padding: 8px 12px;
    font-size: 14px;
    height: auto;
    line-height: normal;
    background-color: var(--login-input-bg);
    color: var(--login-body-text);
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

.card .form-control:focus {
    border-color: #004C6A;
    box-shadow: none;
    outline: none;
}

.form-control::placeholder {
    font-size: 14px;
    color: var(--login-placeholder);
}

/* Prevent browser extension icons in autocomplete-off inputs */
input[autocomplete="off"] {
    background-image: none !important;
}

/* Checkboxes and radios */
input[type="checkbox"] {
    accent-color: #0A4F63;
}

input[type="radio"] {
    accent-color: #0A4F63;
}

.form-group input[type=checkbox] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #0A4F63;
}

label {
    font-size: 14px;
}

.form-group {
    margin-bottom: 12px;
}

/* Password label + forgot password inline row */
.password-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.forgot-password-link {
    color: var(--login-link-color);
    text-decoration: underline;
    font-size: 14px;
    font-weight: normal;
}

.forgot-password-link:hover {
    color: var(--login-link-color);
}

/* Remember my login label */
.remember-login-label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
}

/* Terms of use / system access notice link */
.terms-of-use {
    color: var(--login-link-color);
    text-decoration: underline;
}

.terms-of-use:hover,
.terms-of-use:focus {
    color: var(--login-link-color);
}

/* Navigation links (no underline default, underline on hover) */
.link-subtle {
    color: var(--login-link-color);
    text-decoration: none;
}

.link-subtle:hover,
.link-subtle:focus {
    color: var(--login-link-color);
    text-decoration: underline;
}

/* Acknowledge error message */
.acknowledge-error-msg {
    display: none;
    color: var(--red1);
    font-size: 14px;
    margin-top: 4px;
    margin-left: 28px;
    margin-bottom: 0;
}

/* Primary buttons (Login, Send Code, Submit) */
.card .loginButton,
.card .btn-primary {
    background: #004C6A;
    border: 1px solid #004C6A;
    border-radius: 6px;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.card .loginButton:hover,
.card .btn-primary:hover {
    background: #0D6B85;
    border-color: #0D6B85;
    color: #ffffff;
}

.card .loginButton:focus,
.card .btn-primary:focus {
    outline: none;
    background: #0D6B85;
    border-color: #0D6B85;
    color: #ffffff;
}

/* Secondary buttons (Cancel, Resend Code) */
.card .btn-default,
.card .btn-resend-mfa {
    background: var(--login-btn-secondary-bg);
    border: 1px solid var(--login-btn-secondary-color);
    color: var(--login-btn-secondary-color);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.card .btn-default:hover,
.card .btn-resend-mfa:hover {
    background: var(--login-btn-secondary-hover-bg);
    color: var(--login-btn-secondary-color);
    border-color: var(--login-btn-secondary-color);
}

.card .btn-default:focus,
.card .btn-resend-mfa:focus {
    outline: none;
    background: var(--login-btn-secondary-hover-bg);
    color: var(--login-btn-secondary-color);
    border-color: var(--login-btn-secondary-color);
}

/* Right-align login button */
.login-button-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

/* MFA button rows */
.mfa-button-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.mfa-button-row-left {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Radio option rows */
.mfa-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.mfa-radio-option label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

/* Hidden elements */
.btnNewUser {
    display: none !important;
}

.cancelBtn {
    display: none !important;
}

/* Footer */
.footer {
    background: #004C6A;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    padding: 24px 0;
    min-width: 100%;
}

.footerContent {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footerContent a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
}

.footerContent a:hover {
    color: #ffffff;
}

/* Acknowledgement panel */
#acknowledge-panel {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

/* Modal styles */
.modal-header {
    display: flex;
    justify-content: space-between;
}

.modal-header .close {
    font-size: xx-large;
}

.modal-dialog-centered {
    top: 50% !important;
    transform: translate(0, -50%) !important;
}

.font-normal {
    font-weight: normal !important;
}

.modal-content {
    background-color: var(--login-card-bg);
    padding: 8px 12px !important;
}

/* Override Bootstrap container/row for MFA pages */
.container {
    background: transparent !important;
    width: 100% !important;
    padding: 0 !important;
}

.row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Panel overrides */
.panel {
    background-color: var(--login-card-bg);
}

.panel-default {
    border-color: var(--login-panel-border);
}

.panel-default > .panel-heading {
    background-color: var(--login-panel-header-bg);
    color: var(--login-body-text);
    border-color: var(--login-panel-border);
}

/* MFA devices panel (ForcedChangeMfa) */
.mfa-devices-panel {
    border: 1px solid var(--login-panel-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.mfa-devices-panel-header {
    background: var(--login-panel-header-bg);
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--login-panel-border);
}

.mfa-devices-panel-body {
    padding: 16px;
}

/* Card body links (navigation links like "Return to login.") */
.card-body a {
    color: var(--login-link-color);
    text-decoration: underline;
}

.card-body a:hover {
    color: var(--login-link-color);
}

/* Inline field validation */
.field-validation-error {
    display: block;
    color: #DC2626;
    font-size: 13px;
    margin-top: 4px;
}

/* Password input with show/hide toggle */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 40px;
}

.password-input-wrapper .form-control::-ms-reveal,
.password-input-wrapper .form-control::-ms-clear,
.password-input-wrapper .form-control::-webkit-reveal {
    display: none !important;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-hide {
    display: none;
}

.password-toggle-btn:focus {
    outline: none;
}

.password-toggle-btn:hover {
    color: #374151;
}

/* Set password page — left link + right button row */
.set-password-button-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

/* Resend link (confirmation email / invite email) */
.resend-link {
    color: #0A4F63;
    text-decoration: underline;
    font-size: 14px;
}

.resend-link:hover,
.resend-link:focus {
    color: #0A4F63;
    text-decoration: none;
}

.profile-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* Resend link rendered as a form submit button */
.resend-link-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
}

/* Set password button — tighter vertical padding than login button */
.set-password-button-row .btn-set-password {
    padding: 12px 24px;
}

.input-validation-error {
    border-color: #DC2626 !important;
}

/* Forgot password page buttons */
.forgot-button-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn-forgot-cancel {
    background: #ffffff;
    border: 1px solid #004C6A;
    color: #004C6A;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-block;
}

.btn-forgot-cancel:hover {
    background: #F5F5F5;
    color: #004C6A;
    text-decoration: none;
}

.btn-forgot-cancel:focus {
    outline: none;
    background: #F5F5F5;
    color: #004C6A;
    text-decoration: none !important;
}

.btn-forgot-send {
    background: #004C6A;
    border: 1px solid #004C6A;
    border-radius: 6px;
    color: #ffffff;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-forgot-send:hover {
    background: #0D6B85;
    border-color: #0D6B85;
    color: #ffffff;
}

.btn-forgot-send:focus {
    outline: none;
    background: #0D6B85;
    border-color: #0D6B85;
    color: #ffffff;
}

/* Request ID on error page */
.request-id {
    font-size: 12px;
    color: #6B7280;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Destructive button (e.g. Remove Phone Number) */
.card .btn-danger-outline {
    background: var(--login-btn-secondary-bg);
    border: 1px solid #DC2626;
    color: #DC2626;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

.card .btn-danger-outline:hover {
    background: #fef2f2;
    border-color: #DC2626;
    color: #DC2626;
}

.card .btn-danger-outline:focus {
    outline: none;
    background: #fef2f2;
    border-color: #DC2626;
    color: #DC2626;
}

/* MFA settings page */
.mfa-section {
    margin-top: 20px;
}

.mfa-section-label {
    font-size: 14px;
    font-weight: 600;
    color: #004C6A;
    border-bottom: 1px solid #D1D5DB;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.mfa-device-row {
    margin-bottom: 20px;
}

.mfa-device-row p {
    margin-bottom: 8px;
}

/* Change button (MFA settings) */
.card .btn-mfa-change {
    background: #ffffff;
    border: 1px solid #004C6A;
    color: #004C6A;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.card .btn-mfa-change:hover,
.card .btn-mfa-change:focus {
    outline: none;
    background: #F5F5F5;
    color: #004C6A;
    border-color: #004C6A;
    text-decoration: none;
}

/* Recovery codes list */
.recovery-code-list {
    background: var(--login-input-bg);
    border: 1px solid var(--login-input-border);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
}

.recovery-code-row {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.recovery-code-row:last-child {
    margin-bottom: 0;
}

.recovery-code {
    font-family: monospace;
    font-size: 14px;
    color: var(--login-body-text);
    letter-spacing: 0.05em;
    background: transparent;
    padding: 0;
}

/* Authenticator key display */
.authenticator-key-display {
    background: var(--login-input-bg);
    border: 1px solid var(--login-input-border);
    border-radius: 6px;
    padding: 12px 16px;
    font-family: monospace;
    font-size: 14px;
    text-align: center;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

/* QR code centered */
.authenticator-qr {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

/* Authenticator app page */
.authenticator-button-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Change phone number page */
.phone-button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.phone-button-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Remove phone button */
.card .btn-phone-remove {
    background: #ffffff;
    border: 1px solid #DC2626;
    color: #DC2626;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.card .btn-phone-remove:hover,
.card .btn-phone-remove:focus {
    outline: none;
    background: #FEF2F2;
    color: #DC2626;
    border-color: #DC2626;
    text-decoration: none;
}

/* Remove confirmation modal */
.confirm-modal-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.confirm-modal-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--login-body-text);
}

.confirm-modal-content p {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 24px;
}

.confirm-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Destructive filled button (modal Remove) */
.btn-destructive {
    background: #DC2626;
    border: 1px solid #DC2626;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-destructive:hover,
.btn-destructive:focus {
    outline: none;
    background: #B91C1C;
    border-color: #B91C1C;
    color: #ffffff;
}


/* Legacy layout classes (unused in current layout, preserved for safety) */
#contentHeader {
    background-color: var(--login-card-bg);
    padding: 0;
    display: table;
    width: 100%;
}

.widthWrap {
    border-left: 0;
    border-right: 0;
    display: table;
    margin: auto;
}

#externalNavigation {
    background: #004C6A;
    width: 100%;
    position: relative;
    z-index: 50;
    height: 51px;
}

#extLogoWrapper {
    padding: 12px;
}

#logoWrapper {
    padding: 12px;
    margin-left: 20px;
}
