.auth-page {

  min-height: 100vh;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 24px 16px;

}



.auth-page .bg-mesh {

  position: fixed;

  inset: 0;

  z-index: -1;

  background: #fafafa;

}



.auth-container {

  width: 100%;

  max-width: 420px;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 24px;

}



.auth-logo {

  display: flex;

  align-items: center;

  gap: 8px;

  font-weight: 700;

  font-size: 24px;

  letter-spacing: 0.02em;

  text-transform: uppercase;

  color: var(--accent-black, #030303);

}



.auth-logo .logo-icon {

  background: var(--primary);

  color: white;

  width: 40px;

  height: 40px;

  border-radius: 4px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.02em;

  box-shadow: none;

}



.auth-card {

  width: 100%;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 0;

  padding: 32px 28px;

  box-shadow: var(--shadow-md);

}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-title {

  font-size: 24px;

  font-weight: 700;

  letter-spacing: -0.01em;

  margin-bottom: 6px;

  text-align: center;

  color: var(--accent-black, #030303);

}



.auth-subtitle {

  font-size: 14px;

  color: var(--text-secondary);

  text-align: center;

  margin-bottom: 28px;

}



.auth-form {

  display: flex;

  flex-direction: column;

  gap: 18px;

  width: 100%;

}



.form-group {

  display: flex;

  flex-direction: column;

  align-items: stretch;

  gap: 8px;

  width: 100%;

}



.form-group label {

  display: block;

  width: 100%;

  font-size: 13px;

  font-weight: 600;

  color: var(--text);

  text-align: left;

}



.form-group input {

  display: block;

  width: 100%;

  box-sizing: border-box;

  font-family: inherit;

  font-size: 15px;

  color: var(--text);

  border-radius: 0 !important;

  padding: 13px 16px !important;

  border: 1px solid var(--border) !important;

  background: var(--surface) !important;

}



.form-group input:focus {

  outline: none;

  border-color: var(--primary) !important;

  box-shadow: none !important;

  background: white !important;

}



.form-group input.error {

  border-color: #ef4444 !important;

}



.password-wrap {

  position: relative;

  display: block;

  width: 100%;

}



.password-wrap input {

  width: 100%;

  padding-right: 44px !important;

}



.toggle-password {

  position: absolute;

  right: 12px;

  top: 50%;

  transform: translateY(-50%);

  display: flex;

  align-items: center;

  justify-content: center;

  width: 32px;

  height: 32px;

  padding: 0;

  border: none;

  background: transparent;

  color: var(--text-muted);

  cursor: pointer;

}



.toggle-password:hover {

  color: var(--text);

}



.form-error {

  display: block;

  min-height: 0;

  font-size: 12px;

  color: #ef4444;

}



.form-row {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  flex-wrap: wrap;

  width: 100%;

}



.checkbox-label {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  font-size: 13px;

  color: var(--text-secondary);

  cursor: pointer;

}



.btn-full {

  width: 100%;

  margin-top: 4px;

}



.auth-footer {

  margin-top: 24px;

  font-size: 14px;

  color: var(--text-secondary);

  text-align: center;

  line-height: 1.6;

}



.auth-footer a {

  color: var(--primary);

  font-weight: 600;

}



.auth-back {

  font-size: 14px;

  font-weight: 500;

  color: var(--text-secondary);

}



.auth-back:hover {

  color: var(--primary);

}



.form-link {

  color: var(--primary) !important;

}



.checkbox-label input {

  accent-color: var(--primary);

}



.form-alert {

  display: block;

  width: 100%;

  padding: 12px 14px;

  font-size: 13px;

  line-height: 1.5;

  border: 1px solid var(--border);

  background: var(--surface-2);

  color: var(--text);

}



.form-alert.error {

  border-radius: 0;

}



.form-alert.success {

  border-radius: 0;

}



.form-alert.warn {

  border-radius: 0;

  background: #fffbeb;

  border-color: #fcd34d;

  color: #92400e;

}



.link-btn {

  background: none;

  border: none;

  padding: 0;

  color: var(--primary);

  font: inherit;

  font-weight: 600;

  cursor: pointer;

  text-decoration: underline;

}



@media (max-width: 768px) {

  .auth-card {

    padding: 24px 20px;

  }



  .auth-title {

    font-size: 22px;

  }

}

