/* ============================================
   Virtual Surveyor Custom Auth - Site CSS
   B2C Theme Customizations
   ============================================ */

/* ============================================
   Base Overrides
   ============================================ */
body {
    background-color: #252525;
}

body .login-page {
    background-color: #252525;
}

.display-4 {
    text-transform: capitalize;
}

/* ============================================
   Typography
   ============================================ */
.auth-title {
    color: #cc992b;
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #FFF;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

div, p, label {
    color: #FFF;
}

/* ============================================
   Links
   ============================================ */
.widget-body a {
    color: #cc992b;
    font-weight: bolder;
    margin-left: 10px;
}

a.auth-link {
    color: #cc992b;
    font-weight: bolder;
}

a.auth-link:hover {
    color: #d4a84b;
    text-decoration: underline;
}

a#createAccount {
    margin-left: 5px;
}

#forgotPassword {
    float: right;
}

.create p {
    font-size: 1.25rem;
    margin-top: 10px;
    color: white;
}

/* ============================================
   Form Elements
   ============================================ */
label {
    display: none !important;
    color: white;
    text-align: left;
    margin-top: 8px;
}

/* Show labels when needed */
label.visible {
    display: block !important;
}

.form-label {
    display: block !important;
    color: #cc992b;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Input fields */
.entry .entry-item input,
.attrEntry input,
.attrEntry input[type=text],
.attrEntry input[type=password],
.attrEntry input[type=email],
.form-control {
    width: 100%;
    box-shadow: none;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    padding: 6px 12px;
    transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
    margin-bottom: 0.25em;
    margin-top: 0.25em;
    outline: none;
    background: padding-box hsla(0, 0%, 100%, .9);
}

.entry input:focus,
.entry select:focus,
.attrEntry input:focus,
.attrEntry input[autofocus],
.attrEntry select:focus,
.form-control:focus {
    border: 1px solid #cc992b;
    outline: none;
    box-shadow: none;
    background: padding-box hsla(0, 0%, 100%, .9);
}

.form-control.is-invalid {
    border-color: #d97657;
}

/* Select dropdowns */
.attrEntry select,
.form-select {
    width: 100%;
    box-shadow: none;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    padding: 6px 12px;
    transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
    margin-bottom: 0.25em;
    margin-top: 0.25em;
    outline: none;
}

/* Placeholder styling */
input::-webkit-input-placeholder {
    color: #BBBBBB !important;
}

input:-moz-placeholder {
    color: #BBBBBB !important;
}

input::-moz-placeholder {
    color: #BBBBBB !important;
}

input:-ms-input-placeholder {
    color: #c6c6c6 !important;
}

/* Disabled inputs */
input:disabled {
    color: #848484;
    background-color: #E6E6E6;
    border-color: #848484;
}

/* ============================================
   Buttons
   ============================================ */
.buttons button,
.btn,
.btn-primary {
    display: inline-block;
    font-weight: normal;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0rem;
    transition: all 0.2s ease-in-out;
    margin-bottom: 0.25em;
    margin-top: 0.25em;
    color: rgb(255, 255, 255);
    box-shadow: rgba(255, 255, 255, 0.15) 0px 1px 0px inset, rgba(0, 0, 0, 0.075) 0px 1px 1px;
    background-color: #cc992b;
    border-color: #cc992b;
    text-transform: uppercase;
}

.buttons button:hover,
.btn:hover,
.btn-primary:hover {
    color: white;
    background-color: #6f5317;
    border-color: #6f5317;
}

.buttons button:focus,
.buttons button.focus,
.btn:focus,
.btn.focus,
.btn-primary:focus {
    color: white;
    background-color: #a27922;
    border-color: #6f5317;
    outline: none;
}

.buttons button:active,
.buttons button.active,
.btn:active,
.btn.active,
.btn-primary:active {
    color: white;
    background-color: #a27922;
    border-color: #6f5317;
    background-image: none;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.buttons button:active:hover,
.buttons button:active:focus,
.buttons button.active:hover,
.buttons button.active:focus,
.btn:active:hover,
.btn:active:focus,
.btn.active:hover,
.btn.active:focus {
    color: white;
    background-color: #84631c;
    border-color: #392a0c;
}

.buttons button.disabled:focus,
.buttons button.disabled.focus,
.buttons button:disabled:focus,
.buttons button:disabled.focus,
.btn.disabled:focus,
.btn:disabled:focus {
    background-color: gray;
    border-color: gray;
}

.buttons button.disabled,
.buttons button:disabled,
.buttons button.disabled:hover,
.buttons button:disabled:hover,
.btn.disabled,
.btn:disabled {
    background-color: gray;
    border-color: gray;
}

.buttons #next,
.buttons #continue,
.btn-block {
    width: 100%;
}

.btn-centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    min-width: 150px;
}

.buttons #cancel {
    display: none;
    width: 49%;
}

.buttons .sendNewCode,
.buttons .sendButton {
    margin-left: 0.25em;
}

/* ============================================
   Error Messages
   ============================================ */
.error,
.error div,
.errorText,
.verificationErrorText,
.field-validation-error {
    color: #d97657;
    font-weight: 400;
    text-align: left;
    padding: 6px 12px 0px 0px;
}

.error p,
div.error p {
    color: #d97657;
    margin: 0;
}

.alert-error {
    background-color: rgba(217, 118, 87, 0.15);
    border: 1px solid #d97657;
    color: #d97657;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-success {
    background-color: rgba(92, 184, 92, 0.15);
    border: 1px solid #5cb85c;
    color: #5cb85c;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.validation-summary-errors ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* ============================================
   Form Groups & Entries
   ============================================ */
.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.attrEntry {
    padding-top: 0px;
    text-align: left;
}

.entry .entry-item > label {
    display: none !important;
}

.entry .entry-item .password-label label {
    display: none;
}

.buttons {
    text-align: center;
}

.sign-up .buttons {
    text-align: left;
}

.verify {
    text-align: left;
}

/* ============================================
   Lists
   ============================================ */
ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}

#attributeList ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}

/* ============================================
   Dividers & Separators
   ============================================ */
.divider {
    display: none;
}

.intro {
    display: none;
}

.heading {
    display: none;
}

.auth-separator {
    border: none;
    border-top: 2px solid #cc992b;
    margin: 20px 0;
}

.reenterPassword_li {
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-bottom: 2px solid #cc992b;
}

/* ============================================
   Help & Info Text
   ============================================ */
.helpLink,
.helpText {
    display: none !important;
}

.helpLink.show,
.helpText.show {
    display: block !important;
    color: #d97657;
    font-weight: bolder;
    text-align: left;
}

.verificationInfoText {
    display: none !important;
}

.verificationSuccessText {
    display: none !important;
}

/* ============================================
   MFA Specific Styles
   ============================================ */
.input label {
    display: none;
    color: white;
    text-align: left;
    margin-top: 10px;
}

.input .number label {
    display: block;
}

#codeVerification .error.itemLevel p {
    text-align: center;
}

/* Hidden elements for MFA */
.ReadOnlyEmail_li .sendButton,
.ReadOnlyEmail_li input[readonly],
.ReadOnlyEmail_li label,
.ReadOnlyEmail_li .helpLink,
.ReadOnlyEmail_li button#cancel,
button#continue,
#claimVerificationServerError {
    display: none !important;
}

/* ============================================
   Password Reset Specific Styles
   ============================================ */
#emailVerificationControl_error_message {
    color: inherit;
}

.verifying-modal #verifying_blurb {
    display: none !important;
}

.verifying-modal {
    color: #fff;
    font-size: 24px;
    display: none;
}

.alert-modal,
.verifying-modal {
    display: none;
}

/* ============================================
   Footer
   ============================================ */
.page-footer {
    margin-bottom: 30px;
    font-size: .9rem;
    color: #798892;
    text-align: center;
}

/* ============================================
   MFA Selection Options
   ============================================ */
.mfa-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(204, 153, 43, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.mfa-option:hover {
    border-color: #cc992b;
    background-color: rgba(204, 153, 43, 0.1);
}

.mfa-option .mfa-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #cc992b;
}

.mfa-option .mfa-details {
    flex: 1;
}

.mfa-option .mfa-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.mfa-option .mfa-description {
    font-size: 0.875rem;
    color: #999;
}

/* ============================================
   OTP Input
   ============================================ */
.otp-input-container {
    margin: 20px 0;
}

.otp-single-input {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 8px;
    padding: 12px 20px;
}

.otp-timer {
    text-align: center;
    color: #999;
    font-size: 0.875rem;
    margin-top: 10px;
}

.otp-timer.expired {
    color: #d97657;
}

/* ============================================
   Success/Error Status Pages
   ============================================ */
.auth-status {
    text-align: center;
    padding: 40px 0;
}

.auth-status-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.auth-status-icon.success {
    color: #5cb85c;
}

.auth-status-icon.error {
    color: #d97657;
}

.auth-status-message {
    font-size: 1.125rem;
    color: #ccc;
    margin-bottom: 30px;
}

/* ============================================
   Loading State
   ============================================ */
.working {
    display: block;
    background-repeat: no-repeat;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* ============================================
   Hidden Utility Classes
   ============================================ */
.hidden {
    display: none !important;
}

.itemLevel {
    display: none !important;
}

.itemLevel.show {
    display: inline-block !important;
}

#requiredFieldMissing {
    display: none !important;
}

.buttons .changeClaims {
    display: none !important;
}

/* ============================================
   Accessibility
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #cc992b;
    outline-offset: 2px;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .auth-title {
        font-size: 1.5rem;
    }

    .auth-subtitle {
        font-size: 1rem;
    }

    .mfa-option {
        padding: 12px 15px;
    }

    .otp-single-input {
        font-size: 20px;
        letter-spacing: 6px;
    }
}
