/* Sign-in, sign-up and onboarding screens shown in front of the Utova app. */
body.utova-locked main.app,
body.utova-locked > .shade,
body.utova-locked > .toast { visibility: hidden; }

#utova-auth {
  position: fixed; inset: 0; z-index: 1000; overflow-y: auto;
  display: grid; place-items: center; padding: 24px 16px;
  font-family: Inter, "Segoe UI", Arial, sans-serif; color: #f8f6f1;
  background: radial-gradient(circle at 85% -5%, #37207c 0, transparent 29rem),
              radial-gradient(circle at -10% 80%, #133748 0, transparent 28rem), #0d0c11;
}
#utova-auth[hidden] { display: none; }
#utova-auth.overlay { background: rgba(8, 7, 12, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.ua-card {
  width: 100%; max-width: 420px; padding: 28px 24px; border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 20px 60px rgba(0, 0, 0, .35);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.ua-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.ua-brand img { width: 36px; height: 36px; border-radius: 10px; }
.ua-brand b { font-size: 18px; letter-spacing: .02em; }
.ua-brand small { display: block; color: #93909c; font-size: 10px; letter-spacing: .14em; }
.ua-env { margin-left: auto; font-size: 10px; font-weight: 900; letter-spacing: .08em; padding: 3px 8px; border-radius: 99px; background: #b9f451; color: #151a05; }

.ua-card h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; }
.ua-card h1 em { font-style: normal; background: linear-gradient(90deg, #42e8df, #9466ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ua-card p { margin: 0 0 18px; color: #aaa6b1; font-size: 14px; line-height: 1.5; }
.ua-card form { display: grid; gap: 12px; }
.ua-card label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: #c9c4d2; }
.ua-card input[type=email], .ua-card input[type=password], .ua-card input[type=text], .ua-card input[type=tel] {
  font: inherit; font-size: 15px; font-weight: 500; color: #f8f6f1; width: 100%;
  padding: 12px 13px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .28);
}
.ua-card input:focus { outline: 2px solid #42e8df; outline-offset: 1px; }
.ua-choice { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.ua-choice legend { font-size: 12px; font-weight: 700; color: #c9c4d2; margin-bottom: 6px; }
.ua-choice label {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #f8f6f1; font-size: 14px;
}
.ua-choice label:has(input:checked) { border-color: #42e8df; background: rgba(66, 232, 223, .08); }
.ua-choice input { margin-top: 3px; accent-color: #42e8df; }
.ua-choice small { display: block; color: #93909c; font-weight: 500; font-size: 12px; margin-top: 2px; }

.ua-primary, .ua-secondary {
  font: inherit; font-size: 14px; font-weight: 900; border-radius: 13px; padding: 13px 17px; cursor: pointer; width: 100%;
}
.ua-primary { border: 0; color: #fff; background: linear-gradient(135deg, #ff7548, #ff5631); }
.ua-primary:disabled { opacity: .55; cursor: wait; }
.ua-secondary { border: 1px solid rgba(255, 255, 255, .16); color: #f8f6f1; background: rgba(255, 255, 255, .05); }
.ua-divider { display: flex; align-items: center; gap: 10px; color: #6f6c78; font-size: 11px; margin: 14px 0; }
.ua-divider::before, .ua-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .12); }
.ua-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; }
.ua-links a { color: #42e8df; text-decoration: none; }
.ua-links a:hover { text-decoration: underline; }
.ua-row { display: flex; gap: 10px; flex-wrap: wrap; } .ua-row > * { flex: 1 1 140px; }
.ua-msg { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.ua-msg.error { background: rgba(255, 103, 56, .12); border: 1px solid rgba(255, 103, 56, .4); color: #ffc7b5; }
.ua-msg.ok { background: rgba(185, 244, 81, .1); border: 1px solid rgba(185, 244, 81, .35); color: #dcf7ad; }
.ua-spinner { width: 34px; height: 34px; margin: 10px auto; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: #42e8df; animation: ua-spin .8s linear infinite; }
@keyframes ua-spin { to { transform: rotate(360deg); } }
.ua-center { text-align: center; }

/* Member join screens */
.ua-opt { font-weight: 500; color: #93909c; }
.ua-card label.ua-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 13px; line-height: 1.45; color: #c9c4d2; cursor: pointer; }
.ua-check input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: #42e8df; }
.ua-note { margin: 16px 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; color: #c9c4d2; background: rgba(66, 232, 223, .07); border: 1px solid rgba(66, 232, 223, .25); }
.ua-card .ua-foot { margin: 16px 0 0; font-size: 12px; color: #93909c; }
.ua-gyms { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ua-gym { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 13px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }
.ua-gym b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.ua-gym small { display: block; margin-top: 2px; color: #93909c; font-size: 12px; }
.ua-gym-side { display: flex; align-items: center; gap: 10px; }
.ua-pill { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 99px; white-space: nowrap; background: rgba(255, 255, 255, .08); color: #c9c4d2; }
.ua-pill.pending { background: rgba(255, 193, 76, .14); color: #ffd98f; }
.ua-pill.active { background: rgba(185, 244, 81, .14); color: #dcf7ad; }
.ua-pill.declined, .ua-pill.removed { background: rgba(255, 103, 56, .12); color: #ffc7b5; }
.ua-link { font: inherit; font-size: 12px; font-weight: 700; color: #42e8df; background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: none; white-space: nowrap; }
.ua-link:hover { text-decoration: underline; }
.ua-link:disabled { opacity: .5; cursor: wait; }

/* Save status pill (bottom-left) */
#utova-sync {
  position: fixed; left: 14px; bottom: 14px; z-index: 900; padding: 6px 11px; border-radius: 99px;
  font: 700 11px Inter, "Segoe UI", Arial, sans-serif; color: #f8f6f1;
  background: rgba(20, 18, 28, .88); border: 1px solid rgba(255, 255, 255, .14);
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: none;
}
#utova-sync.show { opacity: 1; transform: none; }
#utova-sync.error { border-color: rgba(255, 103, 56, .6); color: #ffc7b5; }
@media (max-width: 680px) { #utova-sync { bottom: 84px; } }
