@import url("global.css");

/* Montserrat Font Faces */
@font-face {
    font-family: 'montserrat';
    src: url('/Fonts/Montserrat-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'montserrat';
    src: url('/Fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'montserrat';
    src: url('/Fonts/Montserrat-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'montserrat';
    src: url('/Fonts/Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /*--login-primary: #0067B8;*/
    --login-primary: #000000;
    /*--login-header-bg: var(--login-primary);*/
    --login-header-bg: #FFFFFF;
    --login-header-justify-content: center;
}

/* Base Styles for Auth Container */
.auth-container {
    font-family: montserrat, Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #5e5e5e;
    background-color: #fff;
}

.main-container {
    background-color: #fff;
}

.no-beacon {
    /* Placeholder for beacon-less mode */
}

.auth-sign-in-header {
    text-align: center;
}

.auth-header {
    background-color: var(--login-header-bg);
    border-bottom: 1px solid #ddd;
}

.auth-org-logo {
    max-width: 300px;
    max-height: 80px;
}

.beacon-container {
    /* Beacon container if needed */
}

.auth-content {
    padding: 10px 20px 10px;
    max-width: 100%;
}

.auth-content-inner {
    /* Inner content styling */
}

.idp-discovery {
    /* IDP discovery form styles */
}

.idp-discovery-form {
    /* Form specific styles */
}

/* Form Styles */
.o-form {
    /* Form base styles */
}

.o-form-edit-mode {
    /* Edit mode styles */
}

.o-form-content {
    /* Form content wrapper */
}

.o-form-theme {
    padding-bottom: 0px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.auth-form-title,
.o-form-head {
    font-family: montserrat, Arial, Helvetica, sans-serif !important;
    font-size: 24px;
    line-height: 1;
    margin-top: 50px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500 !important;
    color: black;
    margin: 0 0 25px;
}

.o-form-error-container {
    margin-bottom: 15px;
}

.o-form-fieldset-container {
    /* Fieldset container */
}

.o-form-fieldset {
    margin-bottom: 15px;
}

.o-form-label-top {
    /* Label positioning */
}

.margin-btm-30 {
    margin-bottom: 30px;
}

.auth-form-label,
.o-form-label {
    display: none; /* Hidden by default */
    margin-bottom: 5px;
    font-weight: 500;
}

.o-form-input-container {
    position: relative;
}

.o-form-input {
    position: relative;
    padding-top: 0px;
}

.o-form-input-name-username,
.o-form-input-name-password {
    position: relative;
    display: block;
}

.o-form-input-name-username i,
.o-form-input-name-password i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
    pointer-events: none;
    z-index: 1;
}

.o-form-input-name-username input,
.o-form-input-name-password input {
    padding-left: 28px !important;
    position: relative;
    z-index: 0;
}

.o-form-control {
    position: relative;
    display: block;
}

.auth-first-time-user-note {
    padding: 10px 0;
    font-size: 1rem;
    color: #000000;
    text-align: left;
    line-height: 1.4;
}

.auth-first-time-user-note a {
    color: rgb(119, 119, 119) !important;
}

#auth-sign-in .auth-first-time-user-note a {
    color: rgb(119, 119, 119) !important;
}

.auth-form-input-field {
    width: 100%;
    border: none;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-form-input-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.26);
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    transition: box-shadow 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.auth-form-input-field input:focus {
    outline: none !important;
    border-color: rgb(0, 116, 179) !important;
    box-shadow: 0 0 0 1px rgb(0, 116, 179), 0 0 0 4px rgba(0, 116, 179, 0.15), 0 0 12px rgba(0, 116, 179, 0.2) !important;
    transition: box-shadow 0.15s ease-in-out !important;
}

.input-fix {
    /* Input fixes */
}

/* Button Styles */
.o-form-button-bar {
    margin-top: 20px;
    padding: 0 0 8px;
    text-align: left;
}

.button {
    display: block;
    width: 100%;
    padding: 13px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    font-family: inherit;
}

.button-primary {
    background-color: var(--login-primary);
    color: #fff !important;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 400
}

.button-primary:hover {
    opacity: 0.9;
    -webkit-box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.50);
    box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.50);
}

.button-primary:active,
.button-primary:focus {
    outline: none;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    border-color: rgba(0,0,0,0.70);
}

.button-primary:disabled,
.button-primary[disabled] {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* Footer Styles */
.auth-footer {
    padding-top: 8px;
    text-align: right;
    font-size: 1rem;
    color: black;
}

/* Forgot Password Footer - Float Links */
.forgot-password .auth-footer {
    text-align: left;
    overflow: hidden;
}

.forgot-password .auth-footer::after {
    content: "";
    display: table;
    clear: both;
}

.forgot-password .auth-footer .link {
    color: rgb(119, 119, 119) !important;
    text-decoration-color: rgb(119, 119, 119) !important;
}

.help-links {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
    float: right;
    clear: both;
}

.help-links li {
    display: inline-block;
    margin: 0 0 0 10px;
}

.link {
    color: rgb(119, 119, 119);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.link.help {
    float: left;
}

.link.goto {
    float: right;
}

.link-disabled {
    pointer-events: none;
    opacity: 0.2;
    cursor: not-allowed;
}

.js-help-links {
    /* Help links specific styles */
}

.js-help-link {
    display: none; /* Hidden by default */
}

/* Forgot Password / Unlock Styles */
.js-forgot-password {
    display: block;
    background-color: #000000 !important;
    color: #FFF !important;
    text-decoration: none !important;
    padding: 8px !important;
    margin: 8px 0 8px !important;
    border-radius: 3px;
}

.js-forgot-password:hover {
    box-shadow: 8px 6px 16px 1px rgba(0,0,0,0.70);
    -webkit-box-shadow: 8px 6px 16px 1px rgba(0,0,0,0.70);
    -moz-box-shadow: 8px 6px 16px -px rgba(0,0,0,0.70);
}

.js-forgot-password:focus {
    box-shadow: 0 0 8px #51cbee;
}

.js-unlock {
    display: block;
    background-color: #000000 !important;
    color: #FFF !important;
    text-decoration: none !important;
    padding: 8px !important;
    margin: 8px 0 8px !important;
    border-radius: 3px;
}

.js-unlock:hover {
    box-shadow: 8px 6px 16px 1px rgba(0,0,0,0.70);
    -webkit-box-shadow: 8px 6px 16px 1px rgba(0,0,0,0.70);
    -moz-box-shadow: 8px 6px 16px -px rgba(0,0,0,0.70);
}

.js-unlock:focus {
    box-shadow: 0 0 8px #51cbee;
}

.registration-link {
    display: block;
    background-color: #000000 !important;
    color: #FFF !important;
    text-decoration: none !important;
    padding: 8px !important;
    margin: 8px 0 8px !important;
    border-radius: 3px;
    float: right;
}

.registration-link:hover {
    box-shadow: 8px 6px 16px 1px rgba(0,0,0,0.70);
    -webkit-box-shadow: 8px 6px 16px 1px rgba(0,0,0,0.70);
    -moz-box-shadow: 8px 6px 16px -px rgba(0,0,0,0.70);
}

.registration-link:focus {
    box-shadow: 0 0 8px #51cbee;
}

/* Error/Info Boxes */
.auth-form-infobox-error,
.infobox-error {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 0;
    border-radius: 3px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.auth-form-infobox-error .icon,
.infobox-error .icon {
    background-color:rgb(227, 72, 67) !important;
    width: 36px !important;
    height: auto !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 0;
    margin: 0 !important;
    flex-shrink: 0;
}

.auth-form-infobox-error .icon.error-16::before,
.infobox-error .icon.error-16::before {
    content: "!" !important;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgb(227, 72, 67);
    font-weight: bold;
    font-size: 10px;
    line-height: 1;
}

.auth-form-infobox-error p,
.infobox-error p {
    margin: 0;
    padding: 12px 15px;
    display: inline;
    line-height: 20px;
    flex: 1;
}

.auth-form-infobox-warning,
.infobox-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 12px 15px;
    border-radius: 3px;
    display: flex;
    align-items: flex-start;
}

.auth-form-infobox-warning p,
.infobox-warning p {
    margin: 0;
    padding: 0;
    display: inline;
    line-height: 20px;
}

.infobox {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 0;
    border-radius: 3px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.infobox:not(.infobox-error):not(.infobox-warning) .icon {
    background-color: rgb(0, 125, 193) !important;
    width: 36px !important;
    height: auto !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 0;
    margin: 0 !important;
    flex-shrink: 0;
}

.infobox:not(.infobox-error):not(.infobox-warning) .icon.info-16::before {
    content:  "i" !important;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgb(0, 125, 193);
    font-weight: bold;
    font-size: 10px;
    line-height: 1;
}

.infobox p {
    margin: 0;
    padding: 12px 15px;
    display: inline;
    line-height: 20px;
    flex: 1;
}

/* Generic icon - only apply margin when NOT inside infobox */
.icon {
    display: inline-block;
    vertical-align: top;
}

/* Add margin for icons NOT in infoboxes */
:not(.infobox):not(.infobox-error):not(.infobox-warning) > .icon {
    margin-right: 8px;
}

.error-16 {
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.error-16::before {
    content: "!";
}

.error-16-small {
    width: 16px;
    height: 16px;
    background-color: #e74c3c;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    line-height: 1;
    margin-right: 5px;
}

.error-16-small::before {
    content: "!";
}

.warning-16::before {
    content: "⚠";
    font-size: 16px;
}

.info-16 {
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.info-16::before {
    content: "ℹ";
    font-size: 16px;
}

/* Form Error States */
.o-form-input-error {
    color: #e74c3c !important;
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
}

.o-form-input.o-form-has-errors input:focus {
    border-color: rgb(0, 116, 179) !important;
    box-shadow: 0 0 0 1px rgb(0, 116, 179), 0 0 0 4px rgba(0, 116, 179, 0.15), 0 0 12px rgba(0, 116, 179, 0.2) !important;
    transition: box-shadow 0.15s ease-in-out;
}

/* Icon Styles */
#auth-sign-in i {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Icon styles are handled by .o-form-input-name-username i and .o-form-input-name-password i above */

/* Registration Container */
#auth-sign-in .registration-container {
    margin-top: 90px;
}

#auth-sign-in .registration-container .content-container {
    padding: 10px 0 !important;
}

/* MFA Styles */
#auth-sign-in .mfa-verify-passcode .link-button {
    float: right;
    margin-top: 8px;
}

#auth-sign-in .mfa-send-email-content {
    padding-bottom: 10px;
}

/* Form Divider */
#auth-sign-in .form-divider {
    margin-bottom: 15px;
}

/* Explanation Text */
#auth-sign-in .o-form-explain {
    color: #000000;
    font-size: 13px;
    font-weight: 500;
}

/* Layout Overrides */
body #authControl {
    display: grid;
    grid-template-areas: "wc" "vc";
    margin: 30px 15px;
}

@media (min-width: 768px) {
    body #authControl {
        margin: 60px 30px;
    }
}

body #authControl #widget-container {
    grid-area: wc;
    display: grid;
    grid-template-areas: "osi" "cap";
    width: fit-content;
    max-width: 1080px;
    margin: 0 auto;
    border-width: 4px;
    border-style: solid;
    border-color: var(--login-primary);
    border-radius: 5px;
    color: black;
}

body #authControl #widget-container:not(:has(#clientAdditionalPanel)) {
    grid-template-areas: "osi";
    width: 465px;
}

@media (min-width: 768px) {
    body #authControl #widget-container {
        grid-template-areas: "osi cap";
        /* Auto-size columns based on content, equal when both fit */
        grid-template-columns: auto auto;
    }
    body #authControl #widget-container:not(:has(#clientAdditionalPanel)) {
        grid-template-areas: "osi";
        grid-template-columns: 1fr;
    }
}

body #authControl #widget-container #auth-sign-in.auth-container {
    grid-area: osi;
    width: 465px;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    overflow: hidden;
}

body #authControl #widget-container:not(:has(#clientAdditionalPanel)) #auth-sign-in.auth-container {
    width: 100%;
}

body #authControl #widget-container #auth-sign-in.auth-container .auth-sign-in-header {
    padding: 10px 20px 10px;
    min-height: 60px;
    display: flex;
    justify-content: var(--login-header-justify-content);
    align-items: center;
    background-color: var(--login-header-bg);
}

    body #authControl #widget-container #auth-sign-in.auth-container .auth-sign-in-header .auth-org-logo {
        max-width: 424px;
    }

body #authControl #widget-container #auth-sign-in.auth-container .link.js-forgot-password,
body #authControl #widget-container #auth-sign-in.auth-container .button-primary {
    background-color: var(--login-primary) !important;
}

body #authControl #widget-container #auth-sign-in.auth-container .link.js-forgot-password:hover,
body #authControl #widget-container #auth-sign-in.auth-container .button-primary:hover {
    background-color: var(--login-primary) !important;
    -webkit-box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.50);
}

body #authControl #widget-container #auth-sign-in.auth-container .button-primary:disabled,
body #authControl #widget-container #auth-sign-in.auth-container .button-primary[disabled] {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

body #authControl #widget-container #auth-sign-in.auth-container .auth-content {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

body #authControl #widget-container #auth-sign-in.auth-container .auth-footer {
    font-size: 1rem;
    color: black;
}

body #authControl #widget-container #clientAdditionalPanel {
    grid-area: cap;
    background-color: var(--login-primary);
    color: white;
}

body #authControl #widget-container #clientAdditionalPanel #additionalLoginInstructions {
    padding: 1rem;
}

body #authControl #widget-container #clientAdditionalPanel #additionalLoginInstructions ul {
    list-style-position: inside;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

body #authControl #widget-container #clientAdditionalPanel #additionalLoginInstructions a {
    color: white;
    text-decoration: underline;
}

body #authControl #versionContainer {
    grid-area: vc;
    text-align: center;
    font-size: 1rem;
    padding: .5rem;
}

/* Specific Auth Sign-In Overrides */
#auth-sign-in .auth-header {
    padding: 10px 10px 70px;
}

#auth-sign-in .auth-content {
    padding: 20px 20px 10px;
}

#auth-sign-in .auth-footer {
    padding-top: 8px;
}

#auth-sign-in.auth-container.main-container {
    overflow: hidden;
    padding-top: 0px;
}

#auth-sign-in.auth-container h2,
#auth-sign-in.auth-container h3 {
    font-weight: 900;
    color: black;
}

#auth-sign-in.auth-container .auth-form-label {
    display: none;
}

/* Forgot Password Screen - Show Label */
#auth-sign-in .forgot-password .auth-form-label,
#auth-sign-in .forgot-password .o-form-label {
    display: block;
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 15px;
    color: black;
}

/* Button Wide Style for Forgot Password */
.button-wide {
    width: 100%;
    margin-top: 15px;
}

/* Back Link Style */
.js-back {
    color: #1976d2;
    text-decoration: none;
}

.js-back:hover {
    text-decoration: underline;
}
