/* Shared Login Page Styles */
/* Used by login-gms.html, login-crm.html */
/* Matches bettergymmgmt.com landing page design */

:root {
  --login-accent: #2D7DD2;
  --login-accent-hover: #2570BE;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Subtle radial gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(45, 125, 210, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Portal Switcher */
.portal-switcher {
  position: absolute;
  top: 28px;
  right: 28px;
  display: flex;
  gap: 20px;
  z-index: 100;
}

.portal-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.3px;
}

.portal-link:hover {
  color: rgba(255, 255, 255, 0.70);
}

.portal-link.active {
  color: rgba(255, 255, 255, 0.90);
  font-weight: 600;
}

/* Login Container */
.login-container {
  width: 100%;
  max-width: 360px;
  position: relative;
  z-index: 1;
}

/* Logo Section */
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.logo-section img {
  width: 240px;
  height: auto;
  margin-bottom: -30px;
  opacity: 0.9;
  object-fit: contain;
}

.system-badge {
  display: inline-block;
  color: rgba(255, 255, 255, 0.40);
  padding: 4px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  background: none;
}

.welcome-subtitle {
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  margin-top: 2px;
}

/* Messages */
.error-message {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #f87171;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  display: none;
}

.error-message.show {
  display: block;
}

.success-message {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  display: none;
}

.success-message.show {
  display: block;
}

/* Form Elements */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.90);
  transition: all 0.2s ease;
  font-family: inherit;
  outline: none;
}

.form-input:focus {
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.06);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.20);
}

/* Buttons */
.login-button {
  width: 100%;
  padding: 13px;
  background: var(--login-accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  letter-spacing: 0.3px;
  margin-top: 8px;
  font-family: inherit;
}

.login-button:hover {
  background: var(--login-accent-hover);
}

.login-button:active {
  transform: scale(0.99);
}

.login-button:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.25);
  cursor: not-allowed;
}

/* Loading */
.loading {
  display: none;
  text-align: center;
  color: rgba(255, 255, 255, 0.40);
  margin-top: 12px;
  font-size: 13px;
}

.loading.show {
  display: block;
}

/* System Info */
.system-info {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.15);
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
  .portal-switcher {
    top: 16px;
    right: 16px;
  }

  .portal-link {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .login-container {
    max-width: 100%;
  }

  .logo-section img {
    width: 140px;
  }
}
