/* Base styles and reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', Arial, sans-serif;
}

body {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #f8f9fa;
}

/* Login container */
.login-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 60px);
}

.login-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  width: 100%;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.5px;
}

.login-header p {
  color: #333;
  opacity: 0.8;
  font-size: 1rem;
}

/* Error message */
.error-message {
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* Form styling */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #2c3e50;
  opacity: 0.7;
}

.input-with-icon input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  border: 1px solid #bdc3c7;
  border-radius: 6px;
  background-color: #ecf0f1;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-with-icon input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #3498db;
}

.forgot-password {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-button {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
}

.login-button:hover {
  background-color: #2980b9;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem 0;
  color: #333;
  opacity: 0.7;
  font-size: 0.85rem;
  position: relative;
  margin-top: auto;
  height: 60px;
}

/* SSO specific styles */
.sso-login {
  margin-top: 20px;
}

.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.divider p {
  margin: 0 15px;
  font-weight: bold;
}

.divider:before,
.divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #e0e0e0;
}

.btn-primary.btn-lg.btn-block {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  margin-top: 10px;
  text-align: center;
  text-decoration: none;
  color: white;
  background-color: #2F2F2F;
  transition: background-color 0.3s ease;
}

.btn-primary.btn-lg.btn-block:hover {
  background-color: #444444;
}

.me-2 {
  margin-right: 8px;
}

/* TOTP setup styling */
.totp-setup {
  padding: 0 1.5rem;
}

.qr-code {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.qr-code img {
  border: 1px solid #dee2e6;
  padding: 0.5rem;
  border-radius: 0.25rem;
}

.manual-setup {
  margin-bottom: 1.5rem;
  text-align: center;
}

.secret-key {
  background-color: #f8f9fa;
  padding: 0.75rem;
  border-radius: 0.25rem;
  font-family: monospace;
  margin-top: 0.5rem;
  word-break: break-all;
}

/* Utility classes */
.mt-4 {
  margin-top: 1.5rem;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.my-4 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.text-center {
  text-align: center;
}

.fw-bold {
  font-weight: 700;
}

.mx-3 {
  margin-left: 1rem;
  margin-right: 1rem;
}

.mb-0 {
  margin-bottom: 0;
}
/* Base styles and reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', Arial, sans-serif;
}

body {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #f8f9fa;
}

/* Login container */
.login-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 60px);
}

.login-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  width: 100%;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.5px;
}

.login-header p {
  color: #333;
  opacity: 0.8;
  font-size: 1rem;
}

/* Error message */
.error-message {
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* Form styling */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #2c3e50;
  opacity: 0.7;
}

.input-with-icon input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  border: 1px solid #bdc3c7;
  border-radius: 6px;
  background-color: #ecf0f1;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-with-icon input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #3498db;
}

.forgot-password {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-button {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
}

.login-button:hover {
  background-color: #2980b9;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem 0;
  color: #333;
  opacity: 0.7;
  font-size: 0.85rem;
  position: relative;
  margin-top: auto;
  height: 60px;
}

/* SSO specific styles */
.sso-login {
  margin-top: 20px;
}

.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.divider p {
  margin: 0 15px;
  font-weight: bold;
}

.divider:before,
.divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #e0e0e0;
}

.btn-primary.btn-lg.btn-block {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  margin-top: 10px;
  text-align: center;
  text-decoration: none;
  color: white;
  background-color: #2F2F2F;
  transition: background-color 0.3s ease;
}

.btn-primary.btn-lg.btn-block:hover {
  background-color: #444444;
}

.me-2 {
  margin-right: 8px;
}

/* TOTP setup styling */
.totp-setup {
  padding: 0 1.5rem;
}

.qr-code {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.qr-code img {
  border: 1px solid #dee2e6;
  padding: 0.5rem;
  border-radius: 0.25rem;
}

.manual-setup {
  margin-bottom: 1.5rem;
  text-align: center;
}

.secret-key {
  background-color: #f8f9fa;
  padding: 0.75rem;
  border-radius: 0.25rem;
  font-family: monospace;
  margin-top: 0.5rem;
  word-break: break-all;
}

/* Utility classes */
.mt-4 {
  margin-top: 1.5rem;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.my-4 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.text-center {
  text-align: center;
}

.fw-bold {
  font-weight: 700;
}

.mx-3 {
  margin-left: 1rem;
  margin-right: 1rem;
}

.mb-0 {
  margin-bottom: 0;
}
