/* Client & Auth Styles for Coach App */

/* ---- Auth Screens (Login, Join, Setup, Waiting) ---- */
.auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 24px 16px;
  max-width: 440px;
  margin: 0 auto;
}

.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-ink, #07080c);
  margin-bottom: 14px;
}

.auth-logo svg {
  width: 28px;
  height: 28px;
}

.auth-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
  color: var(--fg);
}

.auth-sub {
  font-size: 14.5px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.4;
}

.auth-card {
  width: 100%;
  padding: 24px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199, 242, 74, 0.2);
}

.form-error {
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--bad);
  background: rgba(240, 50, 90, 0.1);
  border-radius: 10px;
  border-left: 3px solid var(--bad);
  line-height: 1.4;
}

.form-success {
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--good);
  background: rgba(47, 125, 109, 0.12);
  border-radius: 10px;
  border-left: 3px solid var(--good);
  line-height: 1.4;
}

.consent-group {
  margin-top: 20px;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-2);
}

.auth-btn {
  width: 100%;
  padding: 13px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  margin-top: 6px;
}

/* ---- Waiting Screen ---- */
.waiting-card {
  text-align: center;
  padding: 36px 20px;
}

.waiting-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(199, 242, 74, 0.14);
  color: var(--accent);
  margin-bottom: 20px;
}

.waiting-icon svg {
  width: 34px;
  height: 34px;
}

.pulse-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.5;
  animation: pulse-kf 2s infinite ease-out;
}

@keyframes pulse-kf {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ---- Food Screen ---- */
.food-view {
  padding-bottom: 30px;
}

.day-card {
  padding: 16px;
  margin-bottom: 14px;
}

.day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.day-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--fg);
}

.day-sub {
  font-size: 12.5px;
  color: var(--fg-2);
  margin-top: 2px;
}

.day-macros {
  display: flex;
  gap: 6px;
}

.macro-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
}

.macro-badge.kcal {
  background: rgba(240, 110, 40, 0.12);
  color: #ff8c42;
}

.macro-badge.protein {
  background: rgba(47, 125, 109, 0.15);
  color: var(--good);
}

.food-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.food-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.food-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
}

.food-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.food-ico-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(240, 110, 40, 0.1);
  color: #ff8c42;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.food-ico-box svg {
  width: 22px;
  height: 22px;
}

.food-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.35;
}

.food-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-2);
  margin-top: 3px;
}

.food-stat {
  font-weight: 500;
}

/* ---- Chat Screen ---- */
.chat-bot-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}

.chat-bot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #07080c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-bot-avatar svg {
  width: 20px;
  height: 20px;
}

.chat-bot-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}

.chat-bot-status {
  font-size: 12px;
  color: var(--fg-2);
}

/* ---- More Screen Profile ---- */
.profile-card {
  padding: 16px;
}

.avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #07080c;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-name {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--fg);
}

.profile-email {
  font-size: 13px;
  color: var(--fg-2);
  margin-top: 2px;
}
.composer.ro { display: none; }
