/* Register Page — «Люди правди» · Сила правди */

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

html,
body {
  overflow-x: hidden
}

:root {
  --dark: #1f4b50;
  --deeper: #0d2b2e;
  --mid: #2E8893;
  --tint: #5aa8b2;
  --light: #a8d5da;
  --pale: #dff0f2;
  --bg: #f5fafb;
  --acc: #F59E0B;
  --acc-l: #FBBF24;
  --ink: #0d1f21;
  --gray: #5a6e70;
  --border: #c8dfe2;
  --red: #ef4444;
  --green: #22c55e;
  --font-d: 'Playfair Display', Georgia, serif;
  --font-b: 'Source Sans 3', system-ui, sans-serif;
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .82rem 1rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-b);
  text-decoration: none;
  margin-bottom: 1.2rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.2rem;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }

.btn-google svg {
  width: 20px;
  height: 20px;
}

.auth-divider span {
  font-size: .78rem;
  color: var(--gray);
  white-space: nowrap;
}

.btn-google:hover {
  border-color: var(--dark);
  background: var(--pale);
}

body.register-page {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column
}

.auth-wrap {
  flex: 1;
  display: flex;
  min-height: 100vh
}

.auth-left {
  width: 420px;
  flex-shrink: 0;
  background: var(--dark);
  padding: 3rem 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden
}

.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none
}

.al-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 3rem
}

.al-logo img {
  height: 40px;
  width: auto
}

.al-logo-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, .25)
}

.al-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.al-logo-sub {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  line-height: 1
}

.al-logo-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1
}

.al-logo-main .acc {
  color: var(--acc)
}

.al-heading {
  font-family: var(--font-d);
  font-size: 1.85rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: .85rem
}

.al-desc {
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.7;
  margin-bottom: 2rem
}

.al-perks {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: auto
}

.al-perk {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 1rem;
  background: rgba(255, 255, 255, .06);
  border-radius: .85rem;
  border: 1px solid rgba(255, 255, 255, .08)
}

.al-perk-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(245, 158, 11, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px
}

.al-perk-icon svg {
  width: 17px;
  height: 17px;
  color: var(--acc)
}

.al-perk-title {
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 2px
}

.al-perk-desc {
  font-size: .76rem;
  color: rgba(255, 255, 255, .45);
  line-height: 1.45
}

.al-trust {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.75rem;
  padding: .85rem 1rem;
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .2);
  border-radius: .85rem
}

.al-trust svg {
  width: 16px;
  height: 16px;
  color: #22c55e;
  flex-shrink: 0
}

.al-trust p {
  font-size: .76rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.4
}

.al-trust strong {
  color: rgba(255, 255, 255, .75)
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg)
}

.auth-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.25rem 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 8px 40px rgba(13, 43, 46, .1);
  border: 1px solid var(--border)
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--gray);
  font-size: .83rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color .2s
}

.auth-back:hover {
  color: var(--ink)
}

.auth-back svg {
  width: 14px;
  height: 14px
}

.auth-title {
  font-family: var(--font-d);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--deeper);
  margin-bottom: .3rem
}

.auth-sub {
  font-size: .88rem;
  color: var(--gray);
  margin-bottom: 1.5rem
}

.auth-sub a {
  color: var(--mid);
  font-weight: 600;
  text-decoration: none
}

.auth-sub a:hover {
  text-decoration: underline
}

.auth-error {
  background: #fef2f2;
  color: var(--red);
  border: 1px solid #fecaca;
  padding: .7rem .9rem;
  border-radius: 8px;
  font-size: .85rem;
  margin-bottom: 1rem
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

.form-group {
  margin-bottom: .95rem
}

.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .38rem
}

.form-label .opt {
  font-weight: 400;
  color: var(--gray);
  font-size: .78rem
}

.form-input {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: .9rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  font-family: var(--font-b);
  outline: none
}

.form-input:focus {
  border-color: var(--dark);
  box-shadow: 0 0 0 3px rgba(31, 75, 80, .12)
}

.form-input::placeholder {
  color: var(--light)
}

.form-input.error {
  border-color: var(--red)
}

.form-hint {
  font-size: .74rem;
  color: var(--gray);
  margin-top: .28rem;
  line-height: 1.45
}

.form-hint.err {
  color: var(--red)
}

.pass-wrap {
  position: relative
}

.pass-wrap .form-input {
  padding-right: 2.75rem
}

.pass-toggle {
  position: absolute;
  right: .85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  display: flex;
  align-items: center;
  transition: color .2s;
  padding: 0
}

.pass-toggle:hover {
  color: var(--ink)
}

.pass-toggle svg {
  width: 16px;
  height: 16px
}

.strength-bar {
  display: flex;
  gap: 3px;
  margin-top: .45rem
}

.strength-seg {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
  transition: background .3s
}

.strength-seg.weak {
  background: var(--red)
}

.strength-seg.medium {
  background: var(--acc)
}

.strength-seg.strong {
  background: var(--green)
}

.strength-label {
  font-size: .72rem;
  color: var(--gray);
  margin-top: .25rem
}

.btn-auth {
  width: 100%;
  padding: .9rem;
  background: var(--dark);
  color: #fff;
  border: 1.5px solid var(--dark);
  border-radius: 9px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-b);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: .25rem
}

.btn-auth:hover {
  background: transparent;
  color: var(--dark)
}

.btn-auth svg {
  width: 17px;
  height: 17px
}

.auth-policy {
  font-size: .74rem;
  color: var(--gray);
  text-align: center;
  margin-top: .9rem;
  line-height: 1.55
}

.auth-policy a {
  color: var(--mid);
  text-decoration: none
}

.auth-policy a:hover {
  text-decoration: underline
}

.reg-success {
  text-align: center;
  padding: 1.5rem 0
}

.reg-success .s-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem
}

.reg-success .s-icon svg {
  width: 34px;
  height: 34px;
  color: var(--green)
}

.reg-success h3 {
  font-family: var(--font-d);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--deeper);
  margin-bottom: .5rem
}

.reg-success p {
  font-size: .88rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 1.5rem
}

.reg-success .s-email {
  color: var(--ink);
  font-weight: 600
}

.btn-goto {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .82rem 1.5rem;
  background: var(--dark);
  color: #fff;
  border: 1.5px solid var(--dark);
  border-radius: 9px;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-b);
  text-decoration: none
}

.btn-goto:hover {
  background: transparent;
  color: var(--dark)
}

@media(max-width:860px) {
  .auth-left {
    display: none
  }
  .auth-right {
    padding: 1.5rem 1rem
  }
  .auth-card {
    padding: 1.75rem 1.25rem;
    max-width: 100%
  }
}

@media(max-width:520px) {
  .form-row {
    grid-template-columns: 1fr
  }
  .auth-card {
    border-radius: 1rem;
    padding: 1.5rem 1rem
  }
  .auth-title {
    font-size: 1.35rem
  }
}