/* PupHub authentication and account screens */

:root {
  --gold: #C89B3C;
  --gold-dk: #A67C2E;
  --brown: #3D2E1F;
  --cream: #F5D5C0;
  --border: #EDE4DA;
  --green: #5A9E3F;
  --text: #4A3728;
  --text-m: #A99B8E;
  --fh: 'Outfit', sans-serif;
  --fb: 'Nunito', sans-serif;
  --r-full: 9999px;
}

.auth-page {
  background: #fff;
  min-height: 58vh;
  padding: 28px 0 54px;
}

.auth-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(59, 37, 6, .06);
}

.auth-head {
  text-align: center;
  margin-bottom: 22px;
}

.auth-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-mark svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
}

.auth-head h1 {
  font-family: var(--fh);
  font-size: 1.7rem;
  color: var(--brown);
  margin: 0 0 6px;
}

.auth-head p {
  font-size: .9rem;
  color: var(--text-m);
  margin: 0;
  line-height: 1.5;
}

.auth-alert,
.account-alert,
.course-alert {
  border-left: 4px solid #e74c3c;
  border-radius: 0 8px 8px 0;
  background: #fdf0f0;
  color: #721c24;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: .82rem;
  line-height: 1.5;
}

.auth-alert.success,
.account-alert.success,
.course-alert.success {
  background: #d4edda;
  border-left-color: var(--green);
  color: #155724;
}

.inline-alert-link {
  color: var(--gold);
  font-weight: 700;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
}

.auth-tab {
  min-height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-m);
}

.auth-tab.active {
  background: var(--brown);
  color: #fff;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-row,
.account-field,
.course-field {
  margin-bottom: 15px;
}

.auth-row label,
.account-field label,
.course-field label {
  display: block;
  margin-bottom: 5px;
  font-size: .68rem;
  font-weight: 800;
  color: var(--text-m);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.auth-row input,
.account-field input {
  width: 100%;
  padding: 12px 13px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  font-family: var(--fb);
  box-sizing: border-box;
  background: #fff;
  transition: border .2s, box-shadow .2s;
}

.auth-row input:focus,
.account-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 155, 60, .14);
}

.pass-wrap {
  position: relative;
}

.pass-wrap input {
  padding-right: 44px;
}

.pass-toggle,
.course-pass-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--text-m);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pass-toggle svg,
.course-pass-toggle svg {
  width: 18px;
  height: 18px;
}

.auth-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  font-size: .82rem;
  padding: 15px 18px;
  border: 0;
}

.auth-foot {
  text-align: center;
  margin-top: 18px;
  font-size: .85rem;
  color: var(--text-m);
}

.auth-foot a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: underline;
}

.account-page {
  background: #fff;
  min-height: 50vh;
  padding: 20px 0 40px;
}

.account-shell {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.account-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  text-align: left;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-profile.has-dog {
  margin-bottom: 16px;
}

.account-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--brown));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
  font-family: var(--fh);
}

.account-name {
  font-size: 1.15rem;
  color: var(--brown);
  margin: 0 0 3px;
  font-family: var(--fh);
  line-height: 1.2;
}

.account-email {
  color: var(--text-m);
  font-size: .76rem;
  margin: 0;
}

.account-dog {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  color: var(--text);
}

.account-dog-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.account-muted {
  color: var(--text-m);
}

.account-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.account-actions .hero-cta {
  font-size: .75rem;
  padding: 12px 24px;
}

.account-lessons {
  background: var(--green) !important;
  color: #fff !important;
}

.account-outline {
  background: #fff !important;
  color: var(--brown) !important;
  border: 2px solid var(--border) !important;
}

.account-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border: 2px solid var(--border);
  border-radius: var(--r-full);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-m);
  text-decoration: none;
}

.account-login-head {
  margin-bottom: 24px;
}

.account-login-head svg {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  stroke: var(--gold);
}

.account-login-head h1 {
  font-size: 1.8rem;
  color: var(--brown);
  margin-bottom: 8px;
  font-family: var(--fh);
}

.account-login-head p {
  color: var(--text-m);
  font-size: .9rem;
}

.account-form {
  text-align: left;
}

.account-form .hero-cta {
  width: 100%;
  justify-content: center;
  font-size: .8rem;
  padding: 16px;
  border: 0;
}

.account-links {
  text-align: center;
  margin-top: 24px;
  font-size: .8rem;
  color: var(--text-m);
}

.account-links a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
}

.course-auth-body {
  background: #111014;
  color: #F5F0E8;
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.course-auth-body a {
  color: #C89B3C;
  text-decoration: none;
}

.course-wrap {
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.course-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.course-logo svg {
  width: 40px;
  height: 40px;
}

.course-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #F5F0E8;
}

.course-logo-text span {
  color: #C89B3C;
}

.course-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  color: #F5F0E8;
  margin-bottom: 4px;
}

.course-sub {
  color: #6B6370;
  font-size: .85rem;
  margin-bottom: 24px;
}

.course-card {
  background: #1A191E;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, .06);
  text-align: left;
}

.course-field label {
  color: #A89580;
}

.course-field input {
  width: 100%;
  padding: 12px 14px;
  background: #222127;
  border: 1.5px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  font-size: .95rem;
  font-family: 'DM Sans', sans-serif;
  color: #F5F0E8;
  box-sizing: border-box;
  outline: none;
  transition: border .2s;
}

.course-field input:focus {
  border-color: #C89B3C;
}

.course-field input::placeholder {
  color: #6B6370;
}

.course-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #C89B3C, #E8C547);
  color: #fff;
  border: 0;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all .2s;
  margin-top: 8px;
}

.course-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200, 155, 60, .3);
}

.course-links {
  margin-top: 16px;
  font-size: .8rem;
  color: #6B6370;
}

.course-links a {
  font-weight: 600;
}

.course-alert {
  border-radius: 10px;
  font-size: .85rem;
}

.course-alert.error {
  background: rgba(231, 76, 60, .1);
  border-color: #e74c3c;
  color: #ff6b6b;
}

.course-alert.success {
  background: rgba(90, 158, 63, .1);
  border-color: #5A9E3F;
  color: #7dd668;
}

.course-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: #6B6370;
  margin-bottom: 16px;
}

.course-back:hover {
  color: #C89B3C;
}

@media (max-width: 560px) {
  .auth-card {
    margin: 0 12px;
    padding: 20px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-head h1 {
    font-size: 1.45rem;
  }
}
