/* 
* oauth_login.css
* Styling for the OAuth login page with multiple providers
*/

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: #f9f9f9;
  }
  
  .login-methods {
    width: 100%;
    max-width: 420px;
  }
  
  .login-card {
    width: 100%;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
  }
  
  .login-card-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
  }
  
  .login-logo:hover {
    transform: scale(1.05);
  }
  
  .login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gitlab-dark);
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .login-options {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .login-btn {
    width: 100%;
    padding: 0.75rem;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
  }
  
  .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .okta-btn {
    background-color: var(--gitlab-orange);
    border-color: var(--gitlab-orange);
  }
  
  .okta-btn:hover {
    background-color: var(--gitlab-red);
    border-color: var(--gitlab-red);
  }
  
  .gitlab-btn {
    background-color: #6E49CB;
    border-color: #6E49CB;
    color: white;
    text-decoration: none;
  }
  
  .gitlab-btn:hover {
    background-color: #554488;
    border-color: #554488;
    color: white;
  }
  
  .dev-login-btn {
    background-color: transparent;
    border: 1px dashed #666;
    color: #666;
  }
  
  .dev-login-btn:hover {
    background-color: #f0f0f0;
    border-color: #333;
    color: #333;
  }
  
  .provider-logo {
    height: 20px;
    width: auto;
  }
  
  .login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    color: #6a6a6a;
  }
  
  .login-divider::before,
  .login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .login-divider span {
    padding: 0 0.5rem;
  }
  
  .login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1.5rem;
    color: #6a6a6a;
    font-size: 0.9rem;
    border-top: 1px solid #f0f0f0;
  }
  
  /* Add additional padding for the link */
  .login-footer a {
    color: var(--gitlab-orange);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.35rem 0.5rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    display: inline-block;
  }
  
  .login-footer a:hover {
    color: var(--gitlab-red);
    text-decoration: underline;
    background-color: rgba(252, 109, 38, 0.1);
  }
  
  /* Dark theme adjustments */
  .dark-theme .login-card {
    background-color: var(--card-bg);
  }
  
  .dark-theme .login-title {
    color: var(--text-color);
  }
  
  .dark-theme .login-divider {
    color: var(--text-muted);
  }
  
  .dark-theme .login-divider::before,
  .dark-theme .login-divider::after {
    border-bottom-color: var(--border-color);
  }
  
  .dark-theme .login-footer {
    color: var(--text-muted);
    border-top-color: var(--border-color);
  }
  
  .dark-theme .gitlab-btn {
    background-color: #8E74D8;
    border-color: #7D5AC7;
  }
  
  .dark-theme .gitlab-btn:hover {
    background-color: #9985DD;
    border-color: #8E74D8;
  }
  
  /* Responsive adjustments */
  @media (max-width: 480px) {
    .login-card-body {
      padding: 2rem 1.5rem;
    }
    
    .login-title {
      font-size: 1.5rem;
    }
  }

  /* OAuth login page overrides to always use light mode */
/* Reset theme variables when this CSS is loaded */
html,
body {
  --text-color: #2E2E2E !important;
  --bg-color: #f9f9f9 !important;
  --card-bg: #FFFFFF !important;
  --navbar-bg: #FFFFFF !important;
  --border-color: #e3e3e3 !important;
  --input-bg: #FFFFFF !important;
  --input-border: #e3e3e3 !important;
  background-color: #f9f9f9 !important;
  color: #2E2E2E !important;
}

/* Force light mode even when dark theme class is present */
html.dark-theme,
body.dark-theme {
  --text-color: #2E2E2E !important;
  --bg-color: #f9f9f9 !important;
  --card-bg: #FFFFFF !important;
  --input-bg: #FFFFFF !important;
  background-color: #f9f9f9 !important;
  color: #2E2E2E !important;
}

/* Ensure login container is light */
.login-container {
  background-color: #f9f9f9 !important;
}

/* Login card styles */
.login-card {
  background-color: #FFFFFF !important;
  color: #2E2E2E !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  border-color: #e3e3e3 !important;
}

/* Override form styles within login page */
.login-card .form-control, 
.login-card input[type="text"],
.login-card input[type="password"] {
  background-color: #FFFFFF !important;
  color: #2E2E2E !important;
  border-color: #ced4da !important;
}

/* Login title */
.login-title {
  color: #2E2E2E !important;
}

/* Fix the card body background */
.login-card-body {
  background-color: #FFFFFF !important;
}

/* Fix input borders and text */
.login-btn {
  color: #FFFFFF !important;
}

/* Override any dark theme input styles */
.dark-theme .login-card .form-control,
.dark-theme .login-card input {
  background-color: #FFFFFF !important;
  color: #2E2E2E !important;
  border-color: #ced4da !important;
}

/* Fix the footer text */
.login-footer {
  color: #6a6a6a !important;
  border-top-color: #f0f0f0 !important;
  background-color: #FFFFFF !important;
}

.login-footer a {
  color: var(--gitlab-orange) !important;
}

/* Ensure all elements in login page have light theme */
.login-options, .login-methods, .login-divider {
  background-color: #FFFFFF !important;
  color: #2E2E2E !important;
}

.login-divider::before, .login-divider::after {
  border-color: #e0e0e0 !important;
}

/* Fix for "Continue in Dev Mode" text */
.login-divider span {
    color: #6a6a6a !important;
  }
  
  .dev-login-btn {
    color: #555555 !important;
    border-color: #666666 !important;
  }
  
  .dev-login-btn:hover {
    background-color: #f0f0f0 !important;
    color: #333333 !important;
  }
  
  /* Ensure the provider logo (icon) in the button is visible */
  .provider-logo {
    color: currentColor !important;
  }

  .redemption-code-notice {
  font-weight: 600;
  color: #333333 !important; /* Dark color for light mode */
  background-color: rgba(255, 255, 255, 0.9) !important; /* Light background with opacity */
  border: 1px solid #cccccc !important;
  border-radius: 4px !important;
  padding: 12px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.redemption-code {
  font-family: monospace !important;
  background-color: #f3f3f3 !important;
  color: #c30000 !important; /* Red color for the code */
  padding: 2px 5px !important;
  border-radius: 3px !important;
  font-weight: bold !important;
  border: 1px solid #e0e0e0 !important;
}

/* Make sure the text is visible in dark mode too */
.dark-theme .redemption-code-notice {
  color: #333333 !important; /* Still dark text even in dark mode */
}

.dark-theme .redemption-code {
  color: #c30000 !important; /* Keep the red color in dark mode */
  background-color: #f3f3f3 !important; /* Keep light background */
}