﻿/* Login Page Specific Styles */

/*Login Box*/
.shadow-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
}
.loginmessagetext {
    flex-shrink: 0; /* Prevent shrinking */
    padding: 0px !important;
    width: 100% !important;
    white-space: pre-wrap;
    overflow-x: hidden;
}
.loginmessagetextcontainer {
    max-height: calc(90vh - 220px); /* Ensure it doesn't exceed viewport height minus some space */
    min-height: 80px;
    overflow-y: auto; /* Add scroll if content overflows */
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    max-width: 50vw;
}

@media (max-width: 768px) {
    .loginmessagetextcontainer {
        max-height: calc(20vh );
        max-width: 100vw;
        min-height: 80px;
    }
}

/* Cleaning up Inline Styles - for CSP security */
.login-card {
    width: 24rem;
}

.password-toggle-btn {
    position: absolute;
    right: 3.1rem;   /* Move further left to clear the invalid icon */
    top: 51.5%;      /* Move down a bit more */
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    z-index: 2;
}

.password-toggle-btn:focus {
    outline: none;
    box-shadow: none;
}
.password-input-with-icon {
    padding-right: 3.2rem; /* More space for both icons */
}
/*TTP 230 */
.password-toggle-btn {
    position: absolute;
    right: 19.5rem; /* Increase to move left */
    top: 52%; /* Adjust as needed */
    transform: translateY(-50%);
    z-index: 2;
}
form .form-control.is-invalid,
form .was-validated .form-control:invalid {
    background-position: right 6px top 10px !important;
    background-size: 1.2em 1.2em;
}
