﻿/* Microsoft Sign-In Button Styles */
.ms-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #5e5e5e;
    border: 1px solid #8c8c8c;
    padding: 10px 12px;
    text-decoration: none;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 10px 0; /* Balanced margin for proper spacing below OR */
    width: 100%;
    max-width: 250px;
}
        
.ms-login-button:hover {
    background-color: #f5f5f5;
    border-color: #5e5e5e;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
        
.ms-login-button:active {
    background-color: #e8e8e8;
    transform: scale(0.98);
}
        
.ms-login-button img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}
        
.ms-login-button .button-text {
    transition: opacity 0.2s ease;
}
        
.ms-login-button.loading .button-text {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}
        
.ms-login-button .button-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(94, 94, 94, 0.2);
    border-top-color: #5e5e5e;
    border-radius: 50%;
    animation: ms-button-spin 0.8s linear infinite;
    margin-left: 8px;
}
        
.ms-login-button.loading .button-spinner {
    display: inline-block;
}
        
.ms-login-button.loading {
    cursor: not-allowed;
    opacity: 0.8;
}
        
.ms-login-button.loading:hover {
    transform: none;
    box-shadow: none;
}
        
@keyframes ms-button-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
        
.ms-login-button.loading img {
    opacity: 1;
}
        
.login-divider {
    text-align: center;
    margin: 20px 0; 
}
.login-divider, .ms-login-button {
    position: relative;
    min-width: 257px; 
}
        
.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #d6d6d6;
}
        
.login-divider span {
    background-color: white;
    padding: 0 10px;
    position: relative;
    color: #6c6c6c;
    font-size: 14px;
}

#divAzureADLogin {
    text-align: center;
    margin: 10px 0 15px 0; 
}
        
#divStep1 .PadB15 {
    min-height: 0; 
    padding-bottom: 5px;
}
        
#divStep1 .PadB15:has(.clRed:not(:empty)),
#divStep1 .PadB15:has(.clRed[style*="visible"]),
#divStep1 .PadB15.has-error {
    padding-bottom: 10px; 
    min-height: 15px;
}
        
#divStep1 #divAzureADLogin {
    margin: 5px 0 8px 0;
}
        
#divStep1 .ms-login-button {
    margin: 5px 0; 
}
        
#divStep1 .login-divider {
    margin: 8px 0; 
}
        
#divStep1 .PadB15 {
    position: relative;
    overflow: visible;
}
        
#divStep1 .floatRight {
    position: absolute;
    right: 0;
    bottom: 5px;
}
        
#divStep1 .PadB15.has-error {
    padding-right: 90px;
}
        
#divStep2 .PadB15 {
    min-height: 5px; 
    padding-bottom: 8px;
}
        
#divStep2 #divAzureADLogin {
    margin: 5px 0 10px 0; 
}
        
#rowUsername[style*="display: none"] ~ tr #divAzureADLogin,
#rowPassword[style*="display: none"] ~ tr #divAzureADLogin,
.force-sso #divAzureADLogin {
    margin: 0 0 5px 0; 
}
        
.force-sso .ms-login-button {
    margin: 5px 0; 
}
        
.force-sso .login-divider {
    display: none; 
}
        
.aLoginForgPwd {
    display: inline-block;
    margin: 0;
    padding: 0;
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    vertical-align: middle;
    line-height: 32px; 
}
        
.loginDivBody tr:has(.aLoginForgPwd) td {
    margin: 0;
    padding: 0;
}
        
.login-row {
    margin: 0 !important;
    padding: 0 !important;
}
        
.login-row td {
    margin: 0 !important;
    padding: 0 !important;
}
        
.aLoginForgPwd:hover {
    text-decoration: underline;
}
        
.loginDiv {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}
        
#divStep1, #divStep2 {
    transition: opacity 0.3s ease-in-out;
}
        
.tpobutton.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}
.tpobutton.hiddenUpgrade {
    visibility:hidden;
}
        
.floatRight {
    float: right !important;
}
        
.login-row td::after {
    content: "";
    display: table;
    clear: both;
}
        
.PadB15 {
    min-height: 5px; 
}
        
.PadB15:has(.clRed:not(:empty)),
.PadB15:has(.clRed[style*="visible"]) {
    padding-bottom: 15px;
    min-height: 20px;
}
        
.PadB15.has-error {
    padding-bottom: 15px;
    min-height: 20px;
}
        
@media (max-width: 768px) {
    .loginDiv {
        max-width: 95%;
        margin: 0 auto;
    }
            
    .pageDiv > div > table {
        width: 100%;
    }
            
    .pageDiv > div > table > tbody > tr > td:first-child,
    .pageDiv > div > table > tbody > tr > td:last-child {
        display: none; /* Hide empty centering cells on mobile */
    }
}
        
.company-dropdown {
    max-width: 450px !important;
}