/* ==========================================================================
   Login & Reset Password Page Styles
   Shared styles for login-related pages (Login.aspx, ResetPassword.aspx)
   ========================================================================== */

/* Utility Classes
   ========================================================================== */
.d-flex {
    display: flex;
}

.mt-1 {
    margin-top: 1rem;
}

.mr-1 {
    margin-right: 1rem;
}

.justify-center {
    justify-content: center;
}

.align-start {
    align-items: flex-start;
}

/* Shared Form Styles
   ========================================================================== */
.login-row,
.reset-row {
    text-align: center;
    padding-top: 50px;
}

.login-row img,
.reset-row img {
    max-width: 100%;
    margin-bottom: 30px;
}

.buttons {
    margin-top: 20px;
}

.buttons .btn {
    margin-right: 5px;
}

/* Login Page Specific
   ========================================================================== */
div#login-snackbar {
    display: none;
    position: absolute;
    top: 2rem;
    box-shadow: 0px 4px 8px -3px rgb(0 0 0);
}

/* Reset Password Page Specific
   ========================================================================== */
.reset-password-content {
    padding: 0 24px;
}

.reset-password-header {
    font-size: 24px;
    margin-top: 40px;
    font-weight: bold;
}

.reset-password-description {
    margin-top: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.reset-form-fields .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.reset-form-fields .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.reset-form-fields .form-control {
    padding: 10px 12px;
    font-size: 14px;
    height: auto;
}

/* Didn't get email link - Legacy style */
.didnt-get-email {
    text-align: center;
    margin-top: 15px;
}

.didnt-get-email-link {
    color: #fff;
    text-decoration: underline;
}

/* Back to Sign In - Legacy style (white with underline) */
.back-to-signin {
    text-align: center;
    margin-top: 15px;
    color: #fff;
}

.back-to-signin-link {
    color: #fff;
    text-decoration: underline;
}

.back-to-signin-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Legacy reset-container for backward compatibility */
.reset-container {
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.reset-container .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.reset-container .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* ==========================================================================
   SSO Login Method - Sign In Selector Styles
   ========================================================================== */
.sso .login-method-text {
    margin-bottom: 24px;
}

.sso .buttons {
    margin-top: 10px;
}

/* SSO Login Buttons - Equal Size */
.sso .buttons .sso-btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.sso .buttons .sso-btn:hover {
    background-color: #151619;
    border-color: #101114;
}

/* SSO Link Account Panel - Side by Side Buttons */
.sso-link .buttons.sso-link-buttons {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* SSO OR Divider - White lines for dark background */
.sso .sso-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    max-width: 280px;
}

.sso .sso-divider-line {
    flex: 1;
    height: 1px;
    background-color: #FFFFFF;
}

.sso .sso-divider-text {
    padding: 0 15px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
}

/* ==========================================================================
   Legacy Login Form Styles (Basic Login)
   ========================================================================== */
.legacy-login {
    margin-top: 20px;
}

/* Remember Me Checkbox Area - Left Aligned */
.legacy-login div:has(span[data-id="chkboxRemember"]) {
    text-align: left;
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.legacy-login div:has(span[data-id="chkboxRemember"]) label,
.legacy-login label.remember-me-label {
    margin-bottom: 0;
    font-weight: 400;
    display: inline;
    cursor: pointer;
}

.legacy-login span[data-id="chkboxRemember"] {
    display: inline-flex;
    align-items: center;
}

/* Password Reset Link - Left Aligned */
.legacy-login .password-reset-row {
    text-align: left;
    margin-top: 10px;
}

.legacy-login .password-reset-link {
    text-decoration: underline;
}

/* Login Button - Same Size as SSO Buttons, Centered */
.legacy-login .buttons {
    margin-top: 20px;
    text-align: center;
}

.legacy-login .buttons .btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.legacy-login .buttons .btn:hover {
    background-color: #151619;
    border-color: #101114;
}

.legacy-login .buttons .btn:disabled,
.legacy-login .buttons .btn[disabled],
.legacy-login .buttons .btn.disabled {
    background-color: #EAE9E5; /* Concrete */
    border-color: #6D7A7A; /* Light Tarmac */
    color: #6D7A7A; /* Light Tarmac */
    cursor: not-allowed;
}

.legacy-login .buttons .btn:disabled:hover,
.legacy-login .buttons .btn[disabled]:hover,
.legacy-login .buttons .btn.disabled:hover,
.legacy-login .buttons .btn:disabled:focus,
.legacy-login .buttons .btn[disabled]:focus,
.legacy-login .buttons .btn.disabled:focus {
    background-color: #EAE9E5; /* Concrete - no change on hover */
    border-color: #6D7A7A; /* Light Tarmac */
    color: #6D7A7A; /* Light Tarmac */
}

/* Back to Sign in Selector - Proper Spacing */
.legacy-login .back-to-selector {
    text-align: center;
    margin-top: 15px;
}

.legacy-login .back-to-selector a {
    text-decoration: underline;
}

/* Validation Error Messages - Left Aligned, White for dark background */
.login-error,
.text-danger {
    text-align: left;
    color: #fff;
}

/* Tooltip Hyperlink Styles - Blue for visibility */
html.login .RadToolTip a,
html.login .rtContent a {
    color: #0066CC; /* Default hyperlink blue */
    text-decoration: underline;
}

html.login .RadToolTip a:hover,
html.login .rtContent a:hover {
    color: #0052A3; /* Darker blue on hover */
    text-decoration: underline;
}
