﻿:root {
  --bg: #33353f;
  --accent: #1ef467;
  --panel: #2f3139;
  --panel-2: #262932;
  --text: #f1f1f1;
  --muted: #b9c0ce;
  --input-bg: #10131c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: grid;
  place-items: center;
  background: #14161b;
  font-family: "Arial Narrow", Arial, sans-serif;
  color: var(--text);
}

.screen {
  position: relative;
  width: min(100vw, 573px);
  min-height: 100vh;
  background: var(--bg);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 20px 20px 72px;
}

.shape {
  position: absolute;
  background: var(--accent);
}

.shape-top {
  width: 430px;
  height: 330px;
  top: -150px;
  left: -130px;
  clip-path: polygon(0 0, 78% 0, 100% 32%, 70% 74%, 79% 100%, 0 100%);
}

.shape-bottom {
  width: 430px;
  height: 330px;
  right: -150px;
  bottom: -120px;
  clip-path: polygon(0 0, 78% 0, 100% 32%, 70% 74%, 79% 100%, 0 100%);
  transform: scaleX(-1);
  transform-origin: center;
}

.auth-card {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  background: rgba(18, 21, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 22px;
}

.auth-card h1 {
  margin: 0 0 16px;
  font-size: 34px;
  letter-spacing: 1px;
  text-align: center;
  color: var(--text);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tab {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: var(--panel-2);
  color: #d9deea;
  padding: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--accent);
  color: #0f1118;
  border-color: transparent;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-form.hidden {
  display: none;
}

.field-label {
  font-size: 16px;
  color: #dce1ec;
}

.field-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  padding: 10px 12px;
  font-size: 18px;
}

.field-input:focus {
  outline: 2px solid rgba(30, 244, 103, 0.65);
  outline-offset: 0;
}

.submit-btn {
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  font-size: 22px;
  font-weight: 800;
  background: var(--accent);
  color: #0f1118;
  cursor: pointer;
}

.link-btn {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #d9deea;
  text-decoration: underline;
  text-align: left;
  cursor: pointer;
  padding: 0;
  font-size: 15px;
}

.auth-message {
  min-height: 24px;
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

.auth-message.error {
  color: #ff7f7f;
}

.auth-message.success {
  color: var(--accent);
}

.legal-note {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 18px;
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #ffffff;
}

.email-confirm-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(30, 244, 103, 0.35);
  border-radius: 12px;
  background: rgba(30, 244, 103, 0.08);
}

.email-confirm-panel.hidden {
  display: none;
}

.email-confirm-panel h2 {
  margin: 0 0 8px;
  font-size: 19px;
  color: #ffffff;
}

.email-confirm-panel p {
  margin: 0 0 8px;
  font-size: 15px;
  color: #d9deea;
}

.email-confirm-panel .submit-btn {
  width: 100%;
  margin-top: 6px;
}

@media (max-width: 420px) {
  .auth-card {
    padding: 16px;
    border-radius: 14px;
  }

  .auth-card h1 {
    font-size: 28px;
  }

  .auth-tab {
    font-size: 16px;
  }

  .field-input {
    font-size: 16px;
  }

  .submit-btn {
    font-size: 20px;
  }
}

