body {
    /* background-image: url("../images/login-background.jpg"); */
    background-color: var(--globaltax-app-primary);
    display: grid;
    grid-template-areas:
    "login";
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
    grid-row-gap: 0px;
    grid-column-gap: 0px;
    height: 100vh;
    margin: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

}

#pageLogin {
grid-area: login;
}

/* Stack the layout on small devices/viewports. */
@media all and (max-width: 575px) {
body {
  grid-template-areas:
    "login";
  grid-template-rows: 1fr;
  grid-template-columns:  1fr;
}
}

.company-logo {
  height: 80px;
  background-image: url("../images/client-logo.png"); /* This should work even in prod due to collect static*/
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0;
  margin-top: 26px;
  margin-bottom: 10px;
}

.logon-wrapper {
  text-align: center;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.logon_form {
  width: 40%;
  max-width: 500px;
  border-radius: 8px;
  margin: 0 auto;
}

.logon_form_azure_ad {
  width: 40%;
  max-width: 500px;
  border-radius: 8px;
  margin: 0 auto;
}

form {
  margin: 8px 32px;
}

.form-control {
  font-size: 16px;
}

#login-icon-logo{
  color: var(--globaltax-app-secondary);
}

.common-login-page-redirect-link {
  color: var(--globaltax-app-primary);
  text-decoration: none;
  font-weight: 500;
}
.login-with-azure-ad-logo {
  background-image: url("../images/azure-ad.svg"); /* This should work even in prod due to collect static*/
  height: 25px ;
  width: 25px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0;
}
.login-with-okta-logo {
  background-image: url("../images/okta.svg");
  height: 50px;
  width: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0;
  transition: transform 0.2s ease;
}

/* Enhanced Okta Login Button Styling */
.okta-login-button {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e1e8ed !important;
  border-radius: 12px !important;
  padding: 16px 24px !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}

.okta-login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
  border-color: var(--globaltax-app-primary) !important;
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.okta-login-button:active {
  transform: translateY(0px);
  transition: transform 0.1s ease;
}

.okta-login-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.okta-login-button:hover::before {
  left: 100%;
}

.az-login-link {
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

.az-login-link h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
  transition: color 0.2s ease;
  text-transform: none;
  letter-spacing: 0.3px;
}

.okta-login-button:hover .az-login-link h5 {
  color: var(--globaltax-app-primary);
}

.okta-logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.okta-login-button:hover .login-with-okta-logo {
  transform: scale(1.1);
}

/* Okta Brand Colors and Enhanced Styling */
.okta-login-button {
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  border: 2px solid #007dc1 !important;
}

.okta-login-button:hover {
  border-color: #005a87 !important;
  background: linear-gradient(135deg, #f8fcff 0%, #e6f4ff 100%);
  box-shadow: 0 8px 24px rgba(0, 125, 193, 0.2);
}

.primary-color-button {
  background-color: var(--globaltax-app-primary) !important;
  border-color: var(--globaltax-app-primary) !important;
  color: #fff !important;
  font-weight: 500;
}
.primary-color-button:hover {
  background-color: var(--globaltax-app-secondary) !important;
  border-color: var(--globaltax-app-secondary) !important;
  color: #fff !important; 
}

.primary-color-button a {
  color: #fff !important;
  text-decoration: none !important;
}

.okta-login-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 125, 193, 0.3);
}

/* Loading state for Okta button */
.okta-login-button.loading {
  pointer-events: none;
  opacity: 0.7;
}

.okta-login-button.loading .login-with-okta-logo {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive design for Okta button */
@media (max-width: 768px) {
  .okta-login-button {
    width: 80% !important;
    padding: 14px 20px !important;
  }
  
  .az-login-link h5 {
    font-size: 14px;
  }
  
  .login-with-okta-logo {
    height: 28px;
    width: 28px;
  }
}

@media (max-width: 480px) {
  .okta-login-button {
    width: 90% !important;
    padding: 12px 16px !important;
  }
  
  .az-login-link h5 {
    font-size: 13px;
  }
  
  .login-with-okta-logo {
    height: 24px;
    width: 24px;
  }
}