@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 0 10px;
  position: relative;
}

.site-logo {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  line-height: 0;
}

.site-logo img {
  height: 48px;
  width: auto;
  max-width: min(40vw, 200px);
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("../usd-rowing1.png"), #000;
  background-position: center;
  background-size: cover;
}

.wrapper {
  width: 400px;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

form {
  display: flex;
  flex-direction: column;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
}

.input-field {
  position: relative;
  border-bottom: 2px solid #ccc;
  margin: 15px 0;
}

.input-field label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  color: #fff;
  font-size: 16px;
  pointer-events: none;
  transition: 0.15s ease;
}

.input-field input {
  width: 100%;
  height: 40px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #fff;
}

.input-field input:focus~label,
.input-field input:valid~label {
  font-size: 0.8rem;
  top: 10px;
  transform: translateY(-120%);
}

.forget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 35px 0;
  color: #fff;
}

#remember {
  accent-color: #fff;
}

.forget label {
  display: flex;
  align-items: center;
}

.forget label p {
  margin-left: 8px;
}

.wrapper a {
  color: #efefef;
  text-decoration: none;
}

.wrapper a:hover {
  text-decoration: underline;
}

button {
  background: #fff;
  color: #000;
  font-weight: 600;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 16px;
  border: 2px solid transparent;
  transition: 0.3s ease;
}

button:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.register {
  text-align: center;
  margin-top: 30px;
  color: #fff;
}

.tagline {
  color: #e8e8e8;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.signed-in {
  color: #fff;
  margin: 16px 0;
}

.flash-list {
  margin-bottom: 16px;
  text-align: left;
}

.flash {
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.flash-error {
  background: rgba(180, 40, 40, 0.35);
  color: #fff;
}

.flash-success {
  background: rgba(40, 120, 60, 0.35);
  color: #fff;
}

.flash-info {
  background: rgba(60, 100, 180, 0.35);
  color: #fff;
}

.register-wrap {
  width: min(440px, 94vw);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  text-align: left;
}

.register-wrap form > h2,
.register-wrap .tagline,
.register-wrap > form {
  text-align: center;
}

.register-wrap .flash-list {
  text-align: left;
}

.register-profile {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 14px 14px 10px;
  margin: 18px 0 12px;
  color: #fff;
}

.register-legend {
  padding: 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8e8e8;
}

.register-hint {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  margin: 10px 0 12px;
}

.hr-zones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 12px;
}

@media (min-width: 420px) {
  .hr-zones-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hr-zone-cell label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}

.hr-zone-cell input {
  width: 100%;
  height: 36px;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 15px;
}

.hr-zone-cell input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 1px;
}

.garmin-block {
  margin: 16px 0 8px;
  text-align: center;
}

.garmin-label {
  margin-bottom: 10px;
}

.btn-garmin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  background: #fff;
  color: #000;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-garmin:hover {
  background: #f3f3f3;
  border-color: rgba(0, 0, 0, 0.15);
}

.btn-garmin img {
  display: block;
  height: 22px;
  width: auto;
}

.garmin-soon {
  margin-top: 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}