/* ==========================================================================
   Login page - styles scoped to the "Login" view
   ========================================================================== */

body {
  background: var(--brand-canvas);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--brand-text-dark);
  padding: clamp(1rem, 4vw, 1.5rem);
}

.auth-card {
  width: 100%;
  max-width: 512px;
  background: #FFFFFF;
  border: 1px solid var(--brand-gold);
  border-radius: 32px;
  box-shadow: 0 28px 44px -12px rgba(12, 42, 46, 0.22), 0 56px 90px -24px rgba(12, 42, 46, 0.18);
  padding: clamp(1.5rem, 5vw, 2.5rem) clamp(1rem, 5vw, 2rem);
}

.auth-header {
  margin-bottom: 1.75rem;
}

.auth-header h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.auth-header h1 span {
  color: var(--brand-gold);
}

.auth-header p {
  margin: 0;
  color: var(--brand-text-muted);
}

.auth-brand {
  display: flex;
  width: fit-content;
  text-decoration: none;
  margin-bottom: 1rem;
}

.auth-brand svg {
  width: 96px;
}

.auth-badge {
  width: 36px;
  height: 36px;
  background: var(--brand-navy-deep);
  color: var(--brand-gold);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-navy-deep);
  letter-spacing: -0.5px;
}

.auth-brand-name span {
  color: var(--brand-gold);
}

/* Sign-in overrides for the shared auth input and button styles. */
.auth-card .form-control-custom {
  min-height: 3.5rem;
  border-radius: 16px;
  font-size: 1.125rem;
}

.auth-password {
  position: relative;
}

.auth-password .form-control-custom {
  padding-inline-end: 3.5rem;
}

.auth-password-toggle {
  position: absolute;
  inset-inline-end: 0.5rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand-navy-deep);
  font-size: 1.25rem;
}

.auth-card .btn-auth-primary {
  width: 100%;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--brand-navy-deep);
  color: #FFFFFF;
  border-radius: 999px;
  padding-block: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.auth-card .btn-auth-primary:hover:not(:disabled) {
  background-color: #174044;
}

.btn-auth-primary:focus-visible,
.auth-password-toggle:focus-visible {
  outline: 2px solid var(--brand-gold-dark);
  outline-offset: 2px;
}

.btn-auth-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.user-ident-card {
  background: #F8F5EE;
  border: 1px solid var(--brand-gold);
  border-radius: 16px;
  padding: clamp(0.75rem, 3vw, 1rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.user-ident-details {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 3vw, 1rem);
  min-width: 0;
}

.user-ident-name,
.user-ident-email {
  overflow-wrap: anywhere;
}

.user-ident-name {
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
}

.user-ident-email {
  color: var(--brand-text-muted);
}

.user-ident-change {
  flex-shrink: 0;
  padding-inline: 0;
  color: var(--brand-gold-dark);
  font-weight: 600;
}

.user-avatar-initials {
  width: clamp(2.5rem, 12vw, 4rem);
  height: clamp(2.5rem, 12vw, 4rem);
  border-radius: 50%;
  background: var(--brand-navy-deep);
  color: var(--brand-gold);
  font-weight: 700;
  font-size: clamp(1rem, 4vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.magic-info-card {
  background: #F4F7FB;
  border: 1px solid #D0DBEA;
  border-radius: 12px;
  padding: 1.15rem;
  margin-bottom: 1.5rem;
}

.demo-users-box {
  background: #FAF9F5;
  border: 1px dashed var(--brand-border);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 2rem;
}

.demo-user-pill {
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--brand-text-dark);
  text-decoration: none;
  display: inline-block;
  margin: 3px 2px;
  border: 1px solid var(--brand-border-subtle);
  font-weight: 700;
  transition: all 0.15s;
  cursor: pointer;
}

.demo-user-pill:hover {
  background: var(--brand-gold);
  color: var(--brand-navy-deep);
  border-color: var(--brand-gold);
}

.step-fade {
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
