:root {
  color-scheme: dark light;
  --color-bg: #07191b;
  --color-bg-elevated: #0b2326;
  --color-card: rgba(10, 32, 35, 0.93);
  --color-card-soft: rgba(12, 40, 43, 0.92);
  --color-border-subtle: rgba(78, 149, 144, 0.28);
  --color-text: #e4f7f5;
  --color-text-soft: #9bc2bf;
  --color-accent: #1e9b92;
  --color-accent-strong: #117a75;
  --color-danger: #f97373;

  --radius-lg: 1.2rem;
  --radius-full: 999px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #103f44 0, #0a2529 45%, #061519 100%);
  color: var(--color-text);
}

body {
  -webkit-font-smoothing: antialiased;
}

.app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

.app-header {
  padding: 0.9rem 1.25rem 0.55rem;
}

.app-header-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(
      160deg,
      rgba(30, 155, 146, 0.18),
      rgba(11, 43, 46, 0.78) 45%,
      rgba(10, 38, 41, 0.72)
    ),
    rgba(8, 29, 32, 0.9);
  border: 1px solid rgba(17, 122, 117, 0.24);
  border-radius: 1rem;
  padding: 0.62rem 0.8rem;
  backdrop-filter: blur(6px);
}

.app-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(30, 155, 146, 0.24));
}

.app-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.app-title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.app-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.5rem 1.25rem 1rem;
}

.hero-card {
  border-radius: 1.3rem;
  padding: 1.1rem 1.1rem 1.2rem;
  background: linear-gradient(
      135deg,
      rgba(32, 168, 157, 0.24),
      transparent 55%
    ),
    radial-gradient(circle at top right, rgba(38, 187, 173, 0.45), transparent),
    var(--color-card-soft);
  border: 1px solid rgba(30, 155, 146, 0.3);
  box-shadow: 0 12px 26px rgba(17, 100, 103, 0.2);
}

.hero-copy h1 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.hero-copy p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.card {
  border-radius: 1.2rem;
  background: var(--color-card);
  border: 1px solid var(--color-border-subtle);
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 12px 28px rgba(14, 93, 96, 0.2);
}

.login-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.field-label {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.field-group input {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(80, 153, 148, 0.4);
  background: rgba(6, 25, 27, 0.9);
  color: var(--color-text);
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.field-group input::placeholder {
  color: rgba(137, 184, 178, 0.74);
}

.field-group input:focus {
  border-color: var(--color-accent-strong);
  box-shadow: 0 0 0 1px rgba(30, 155, 146, 0.45);
  background: rgba(9, 31, 34, 0.96);
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  padding: 0.7rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.1s ease, box-shadow 0.1s ease,
    background 0.1s ease, filter 0.1s ease;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, #1fad9f, #0f7a73);
  color: #ecffff;
  box-shadow: 0 10px 18px rgba(17, 122, 117, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 7px 14px rgba(17, 122, 117, 0.24);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.helper-text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.status-message {
  margin-top: 0.5rem;
  min-height: 1.1rem;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.status-message--error {
  color: var(--color-danger);
}

.status-message--success {
  color: var(--color-accent);
}

.info-section {
  margin-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.info-section h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.info-section p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.app-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: linear-gradient(
    to top,
    rgba(8, 28, 31, 0.98),
    rgba(9, 33, 36, 0.94)
  );
  border-top: 1px solid rgba(17, 122, 117, 0.22);
  box-shadow: 0 -8px 22px rgba(11, 84, 87, 0.16);
}

.footer-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  gap: 0.6rem;
  padding: 0.55rem 1.25rem 0.7rem;
}

.footer-meta {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem 0.85rem;
  display: flex;
  justify-content: center;
}

.footer-link {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(155, 194, 191, 0.35);
  padding-bottom: 0.15rem;
}

.footer-link:hover {
  color: var(--color-text);
  border-bottom-color: rgba(228, 247, 245, 0.55);
}

.footer-cta {
  flex: 1;
  padding-block: 0.65rem;
  font-size: 0.8rem;
}

.footer-cta-primary {
  background: linear-gradient(135deg, #1fad9f, #0f7a73);
  color: #ecffff;
  box-shadow: 0 8px 14px rgba(17, 122, 117, 0.28);
}

.footer-cta-secondary {
  background: rgba(12, 43, 46, 0.95);
  color: var(--color-text);
  border: 1px solid rgba(73, 145, 141, 0.55);
}

.footer-cta-secondary:hover {
  background: rgba(15, 51, 54, 0.98);
}

@media (min-width: 720px) {
  .app-root {
    align-items: center;
  }

  .app-main {
    max-width: 520px;
  }
}

