/* Mobile registration screen — Regjistrohu */

:root {
  --red: #d32f2f;
  --red-dark: #b71c1c;
  --grey-bg: #e8eaed;
  --input-bg: rgba(255, 255, 255, 0.65);
  --input-border: rgba(0, 0, 0, 0.06);
  --text-muted: #9aa0a6;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #cfd3d8;
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 100%;
}

.register-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100%;
  margin: 0 auto;
  background: var(--grey-bg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* App bar */
.app-bar {
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 14px 16px;
}

.app-bar__logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(200px, 100%);
  object-fit: contain;
}

/* Pattern background area */
.register-main {
  flex: 1;
  position: relative;
  padding: 24px 20px 120px;
  overflow: hidden;
}

.register-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% 20%, rgba(211, 47, 47, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(66, 133, 244, 0.06) 0%, transparent 45%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 40%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 24px,
      rgba(255, 255, 255, 0.35) 24px,
      rgba(255, 255, 255, 0.35) 25px
    );
  opacity: 0.9;
  pointer-events: none;
}

.register-main::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  right: -60px;
  top: 15%;
  transform: rotate(12deg);
  pointer-events: none;
}

.phone-field-wrap {
  position: relative;
  z-index: 1;
  display: block;
  padding: 14px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.phone-field {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: #202124;
  outline: none;
}

.phone-field::placeholder {
  color: var(--text-muted);
}

.sms-hint {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
  color: #5f6368;
}

.sms-code-wrap {
  text-align: center;
}

.sms-code-field {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.35em;
  padding-left: 0.35em;
}

.register-shell {
  position: relative;
  min-height: 100vh;
}

/* Bottom CTA */
.register-footer {
  flex-shrink: 0;
  padding: 16px 20px calc(20px + var(--safe-bottom));
  background: linear-gradient(to top, var(--grey-bg) 60%, transparent);
  margin-top: auto;
}

.btn-confirm {
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35);
}

.btn-confirm:hover {
  background: var(--red-dark);
}

.btn-confirm:focus-visible {
  outline: 3px solid rgba(211, 47, 47, 0.45);
  outline-offset: 2px;
}

.btn-confirm:active {
  transform: scale(0.99);
}

.btn-confirm:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 12px;
  background: #111827;
  color: #fff;
  border-radius: 8px;
  z-index: 9999;
}

.skip-link:focus {
  left: 8px;
}
