@import "theme-colors.css";

html { scroll-behavior: smooth; }
body{
  margin:0;
  font-family: "Roboto", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding-top: 40px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.logo { height:40px; width:auto; display:block; }
.center { display:flex; gap:8px; align-items:center; }

/* Page layout */
.page {
  max-width: 960px;
  margin: 36px auto;
  padding: 20px;
}

.card {
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-card));
  border-radius: 12px;
  padding: 28px;
  box-shadow: 6px 6px 18px var(--shadow);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}

/* left column: text */
.title span {
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}
.hero {
  padding: 8px 6px;
}
.hero h1 {
  margin: 0 0 10px 0;
  font-size: 28px;
  color: var(--text-primary);
}
.hero p {
  margin:0 0 18px 0;
  color: var(--text-secondary);
  line-height:1.5;
}
.features {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.feature {
  background: rgba(0,0,0,0.15);
  padding:8px 10px;
  border-radius:10px;
  font-size:14px;
  color: var(--text-secondary);
  display:flex;
  gap:8px;
  align-items:center;
}

/* right column: form */
.form-card {
  background: transparent;
  padding: 0;
}

form.signup {
  background: transparent;
  border-radius: 10px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.field {
  display:flex;
  flex-direction:column;
  gap:6px;
}
label { font-size:13px; color: var(--text-secondary); font-weight:500; }
input[type="text"],
input[type="email"],
input[type="password"],
select,
.textarea {
  background: var(--bg-card);
  border: none;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
  font-size: 15px;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.2);
}
input::placeholder { color: #aeb9c6; }

.actions {
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:6px;
}
.btn-signup {
  background: var(--bg-accent);
  border: 2px solid rgba(0,0,0,0.25);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight:700;
  cursor:pointer;
  box-shadow: inset 4px 4px 8px rgba(0,0,0,0.25),
              inset -4px -4px 8px rgba(255,255,255,0.06);
}
.btn-signup:hover { 
  filter: brightness(115%);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(0,0,0,0.2);
  padding: 8px 12px;
  border-radius: 8px;
  cursor:pointer;
  font-size:14px;
}

/* helper/notification */
.note { color: var(--text-secondary); font-size:13px; }
.error { color: #ffb4b4; font-size:13px; }
.success { color: #bff3d6; font-size:14px; font-weight:600; }

/* password row and visibility toggle */
.pw-row { display:flex; gap:8px; align-items:center; }
.pw-toggle {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 8px;
  border-radius: 8px;
  cursor:pointer;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.pw-toggle:hover {
  background: rgba(0,0,0,0.10);
}

/* footer small */
.small {
  font-size:13px;
  color: var(--text-secondary);
  margin-top:8px;
}

/* responsive */
@media (max-width: 880px) {
  .card { grid-template-columns: 1fr; }
  .form-card { order: 2; }
  .hero { order: 1; }
}

@media (max-width: 480px) {
  body { padding-top: 56px; }
  .card { padding:16px; gap:14px; }
  .btn-signup { width:100%; }
  .heading-left { font-size:20px; }
}


.pw-field {
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--bg-card); /* same as other inputs */
  border-radius: 10px;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.2);
}

.pw-field input {
  flex: 1;
  border: none;
  background: transparent;  /* inherit from pw-field */
  color: var(--text);
  padding: 10px 12px;
  font-size: 15px;
  border-radius: 10px 0 0 10px; /* round only left side */
  outline: none;
}

.pw-field input::placeholder {
  color: #aeb9c6;
}

.pw-field .pw-toggle {
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  padding: 0 12px;
  cursor: pointer;
  border-radius: 0 10px 10px 0; /* round only right side */
  font-size: 13px;
  height: 37px;
  transition: background 0.2s;
}

.pw-field .pw-toggle:hover {
  background: rgba(255,255,255,0.15);
}

