/* Stylesheet for server/src/main/resources/static/css/auth.css. */

/* Design tokens and shared theme variables. */

:root {
  --bg: #070a0d;
  --card: rgba(12, 18, 23, 0.78);
  --card-border: rgba(40, 240, 235, 0.18);

  --text: #e9f2f4;
  --muted: rgba(233, 242, 244, 0.72);

  --cyan: #22f3ea;
  --teal: #00c9c3;
  --orange: #ff8a1f;

  --danger: #ff4d4d;
  --ok: #2de38a;

  --shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;
}

/* Styles for *, *::before, *::after. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Styles for html, body. */

html,
body {
  height: 100%;
}

/* Styles for body. */

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    'Apple Color Emoji', 'Segoe UI Emoji';
  background: radial-gradient(
      1000px 600px at 20% 20%,
      rgba(34, 243, 234, 0.1),
      transparent 60%
    ),
    radial-gradient(
      800px 500px at 80% 30%,
      rgba(255, 138, 31, 0.08),
      transparent 60%
    ),
    radial-gradient(
      700px 600px at 50% 90%,
      rgba(0, 201, 195, 0.1),
      transparent 60%
    ),
    linear-gradient(180deg, #05070a 0%, #070a0d 55%, #06080b 100%);
}

/* Styles for .page. */

.page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

/* Styles for .card. */

.card {
  width: min(520px, 100%);
  padding: 26px 24px 18px;
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(12, 18, 23, 0.82),
    rgba(8, 12, 16, 0.75)
  );
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* Styles for .card::before. */

.card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 210deg,
    transparent 0%,
    rgba(34, 243, 234, 0.22) 12%,
    rgba(255, 138, 31, 0.18) 25%,
    transparent 40%,
    transparent 100%
  );
  filter: blur(18px);
  opacity: 0.55;
  pointer-events: none;
}

/* Styles for .brand. */

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

/* Styles for .brand__logo. */

.brand__logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}

/* Styles for .brand__title. */

.brand__title {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.3px;
}

/* Styles for .brand__subtitle. */

.brand__subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Styles for .banner. */

.banner {
  position: relative;
  z-index: 1;
  margin: 12px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  border: 1px solid transparent;
}

/* Styles for .banner--error. */

.banner--error {
  background: rgba(255, 77, 77, 0.1);
  border-color: rgba(255, 77, 77, 0.25);
  color: rgba(255, 220, 220, 0.95);
}

/* Styles for .banner--ok. */

.banner--ok {
  background: rgba(45, 227, 138, 0.1);
  border-color: rgba(45, 227, 138, 0.22);
  color: rgba(210, 255, 235, 0.95);
}

/* Styles for .form. */

.form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

/* Styles for .field__label. */

.field__label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

/* Styles for .field__control. */

.field__control {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 120ms ease, box-shadow 120ms ease,
    transform 120ms ease;
}

/* Styles for .field__control:focus-within. */

.field__control:focus-within {
  border-color: rgba(34, 243, 234, 0.4);
  box-shadow: 0 0 0 3px rgba(34, 243, 234, 0.1);
}

/* Styles for .input. */

.input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  padding: 2px 0;
}

/* Styles for .input::placeholder. */

.input::placeholder {
  color: rgba(233, 242, 244, 0.35);
}

/* Styles for .reveal. */

.reveal {
  border: 0;
  background: transparent;
  color: rgba(34, 243, 234, 0.85);
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  white-space: nowrap;
}

/* Styles for .reveal:hover. */

.reveal:hover {
  background: rgba(34, 243, 234, 0.1);
  color: rgba(34, 243, 234, 1);
}

/* Styles for .row. */

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

/* Styles for .check. */

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

/* Styles for .check__box. */

.check__box {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

/* Styles for .check__label. */

.check__label {
  font-size: 13px;
  color: var(--muted);
}

/* Styles for .link. */

.link {
  color: rgba(255, 138, 31, 0.92);
  text-decoration: none;
  font-size: 13px;
}

/* Styles for .link:hover. */

.link:hover {
  text-decoration: underline;
}

/* Styles for .btn. */

.btn {
  margin-top: 6px;
  width: 100%;
  border: 0;
  cursor: pointer;
  color: #071012;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 14px;

  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    rgba(34, 243, 234, 0.92),
    rgba(0, 201, 195, 0.92)
  );
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 201, 195, 0.2);
  transform: translateZ(0);
}

/* Styles for .btn::after. */

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
      300px 80px at 20% 20%,
      rgba(255, 255, 255, 0.26),
      transparent 60%
    ),
    radial-gradient(
      280px 90px at 80% 50%,
      rgba(255, 138, 31, 0.18),
      transparent 65%
    );
  opacity: 0.75;
  pointer-events: none;
}

/* Styles for .btn:hover. */

.btn:hover {
  filter: brightness(1.02);
}

/* Styles for .btn:active. */

.btn:active {
  transform: translateY(1px);
}

/* Styles for .btn__glow. */

.btn__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.22),
      transparent 45%
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(255, 138, 31, 0.16),
      transparent 50%
    );
  filter: blur(10px);
  opacity: 0.85;
  pointer-events: none;
}

/* Styles for .fineprint. */

.fineprint {
  margin: 6px 2px 0;
  font-size: 12px;
  color: rgba(233, 242, 244, 0.55);
  line-height: 1.4;
}

/* Styles for .foot. */

.foot {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(233, 242, 244, 0.5);
  font-size: 12px;
  display: flex;
  gap: 6px;
  justify-content: center;
}

/* Responsive layout and style overrides. */

@media (max-width: 420px) {
  .brand__logo {
    width: 72px;
    height: 72px;
  }

  .card {
    padding: 22px 18px 16px;
  }
}
