/* Cherry web — account page styles (on top of design tokens) */

/* ---- top bar ---- */
.acc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(16px, 4vw, 48px);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.acc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 22px;
  letter-spacing: 1px;
}
.acc-logo,
.auth-logo {
  display: inline-flex;
  line-height: 0;
}
.acc-logo img,
.auth-logo img {
  display: block;
  image-rendering: pixelated;
}
.acc-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- shared wrap ---- */
.acc-wrap {
  display: flex;
  justify-content: center;
  padding: clamp(12px, 4vh, 48px) 16px 56px;
  width: 100%;
  box-sizing: border-box;
}

/* ============ AUTH CARD ============ */
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
}
.auth-head {
  text-align: center;
  margin-bottom: 22px;
}
.auth-logo {
  justify-content: center;
  margin-bottom: 10px;
}
.auth-logo img {
  margin: 0 auto;
}
.auth-title {
  font-family: var(--font-ui);
  font-size: 30px;
  margin: 4px 0 6px;
  letter-spacing: 1px;
}
.auth-sub {
  margin: 0;
}

/* tabs */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.tab {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 11px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.tab:hover {
  color: #fff;
}
.tab.is-active {
  color: #fff;
  background: var(--grad-accent, linear-gradient(135deg, #e0408a, #b02a8f));
  box-shadow: 0 6px 18px rgba(224, 64, 138, 0.35);
}

/* form */
.auth-form {
  display: flex;
  flex-direction: column;
}
.auth-form .field-label {
  margin-top: 6px;
}
.auth-form .input {
  margin-bottom: 12px;
}
.auth-error {
  color: #ff6b9a;
  margin: 2px 0 10px;
  min-height: 0;
}
.auth-submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}
.auth-switch {
  text-align: center;
  margin: 16px 0 0;
}
.auth-switch a {
  color: var(--c-accent, #e0408a);
  text-decoration: none;
  font-weight: 600;
}
.auth-switch a:hover {
  text-decoration: underline;
}

/* ============ ACCOUNT VIEW ============ */
.acc-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(280px, 420px);
  gap: 22px;
  align-items: start;
  max-width: 820px;
  width: 100%;
}
@media (max-width: 720px) {
  .acc-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.skin-card,
.upload-card {
  padding: 26px 24px;
}

.acc-greet {
  font-family: var(--font-ui);
  font-size: 24px;
  margin: 0 0 4px;
  line-height: 1.3;
}
#uuidLine {
  margin: 0 0 18px;
  word-break: break-all;
  font-size: 12px;
  opacity: 0.7;
}

/* skin preview stage */
.skin-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  border-radius: 16px;
  background: radial-gradient(
      120% 120% at 50% 25%,
      rgba(224, 64, 138, 0.14),
      transparent 70%
    ),
    rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.skin-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 22px rgba(224, 64, 138, 0.35));
}
.skin-empty {
  position: absolute;
  margin: 0;
}

/* ---- upload card ---- */
.upload-title {
  font-family: var(--font-ui);
  font-size: 18px;
  margin: 0 0 4px;
}

.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 22px 16px;
  margin: 16px 0;
  border-radius: 14px;
  border: 1.5px dashed rgba(224, 64, 138, 0.5);
  background: rgba(224, 64, 138, 0.06);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.file-drop:hover,
.file-drop.is-over {
  background: rgba(224, 64, 138, 0.12);
  border-color: var(--c-accent, #e0408a);
}
.file-drop-icon {
  font-size: 22px;
  color: var(--c-accent, #e0408a);
}
.file-drop-text {
  font-size: 13px;
  word-break: break-all;
}

/* variant radios */
.variant-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.variant {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.variant:hover {
  border-color: rgba(224, 64, 138, 0.5);
}
.variant input {
  accent-color: var(--c-accent, #e0408a);
}
.variant:has(input:checked) {
  border-color: var(--c-accent, #e0408a);
  background: rgba(224, 64, 138, 0.1);
}

/* upload status */
.upload-status {
  margin: 4px 0 14px;
}
.upload-status.is-error {
  color: #ff6b9a;
}
.upload-status.is-ok {
  color: #58e08a;
}
.upload-status.is-pending {
  opacity: 0.8;
}

.upload-actions {
  display: flex;
  gap: 10px;
}
.upload-actions .btn {
  flex: 1;
  justify-content: center;
}

@media (max-width: 520px) {
  .acc-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .acc-nav {
    width: 100%;
  }
  .acc-nav .btn {
    flex: 1;
    justify-content: center;
  }
}