/* Shared auth pages — login, logout, register, forgot/reset password (all tenants) */
body.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  position: relative;
}

.auth-page-wrap {
  max-width: 450px;
  width: 100%;
  padding: 20px;
}

.auth-page-wrap.auth-page-wrap-wide {
  max-width: 500px;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.auth-card-header {
  padding: 40px 30px;
  text-align: center;
}

.auth-card-header h2,
.auth-card-header .auth-header-title {
  margin: 0;
  font-weight: 700;
}

.auth-card-header p,
.auth-card-header .auth-header-subtitle {
  margin: 10px 0 0;
}

.auth-logo {
  width: 200px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.auth-body {
  padding: 40px 30px;
}

.auth-body-centered {
  text-align: center;
}

.auth-page .form-control,
.auth-page .form-select {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 12px 15px;
}

.auth-page .btn-auth-primary {
  border-radius: 10px;
  padding: 12px;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  line-height: 1.5;
}

.auth-page a.btn-auth-primary:hover {
  text-decoration: none;
}

.auth-page .back-home {
  position: absolute;
  top: 20px;
  left: 20px;
  text-decoration: none;
  font-weight: 500;
  z-index: 2;
}

.auth-page .alert {
  border-radius: 10px;
  border: none;
}

.auth-status-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

.auth-redirect-note {
  font-size: 0.9rem;
  opacity: 0.85;
}

.auth-page-footer {
  text-align: center;
  margin-top: 1rem;
}

.auth-page-footer small {
  display: inline-block;
}

.auth-page-register {
  padding-top: 40px;
  padding-bottom: 40px;
}

.auth-page .terms-text {
  font-size: 0.9rem;
  color: #6c757d;
}

.auth-page .password-strength {
  height: 5px;
  border-radius: 5px;
  background: #e9ecef;
  margin-top: 5px;
  overflow: hidden;
}

.auth-page .password-strength-bar {
  height: 100%;
  transition: all 0.3s;
  border-radius: 5px;
}

.auth-page .strength-weak { background: #dc3545; width: 33%; }
.auth-page .strength-medium { background: #ffc107; width: 66%; }
.auth-page .strength-strong { background: #28a745; width: 100%; }
