@font-face {
  font-family: "Poppins";
  src: url("../src/assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Poppins";
  src: url("../src/assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
}

@font-face {
  font-family: "Poppins";
  src: url("../src/assets/fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
}

:root {
  --auth-bg: #eef4f1;
  --auth-surface: #f8fbf9;
  --auth-surface-low: #e0e8e4;
  --auth-text: #2d313c;
  --auth-muted: #7b8587;
  --auth-green: #01b96f;
  --auth-danger: #e65757;
  --auth-border: rgba(91, 107, 111, 0.16);
  --auth-raised: 12px 12px 24px rgba(164, 178, 174, 0.42), -10px -10px 24px rgba(255, 255, 255, 0.9);
  --auth-pressed: inset 8px 8px 18px rgba(168, 181, 178, 0.45), inset -8px -8px 18px rgba(255, 255, 255, 0.9);
  --auth-soft: 7px 7px 18px rgba(172, 184, 180, 0.32), -6px -6px 16px rgba(255, 255, 255, 0.8);
}

body.auth-page {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #f8fbf9 0, var(--auth-bg) 42%, #dce8e3 100%);
  color: var(--auth-text);
  font-family: "Poppins", Arial, sans-serif;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
}

.auth-panel {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.auth-logo {
  height: 54px;
  width: 78%;
  max-width: 520px;
  object-fit: contain;
}

.auth-title {
  color: var(--auth-text);
  font-size: 23px;
  font-weight: 500;
  margin: 12px 0 28px;
}

.field-group {
  width: 74%;
  max-width: 900px;
  margin-bottom: 10px;
}

.field-label {
  display: block;
  color: var(--auth-muted);
  font-size: 13px;
  font-weight: 300;
  padding-left: 8px;
  margin: 0 0 8px;
}

.auth-input,
.password-wrap {
  width: 100%;
  height: 58px;
  border-radius: 17px;
  border: 1px solid var(--auth-border);
  background: var(--auth-surface-low);
  box-shadow: var(--auth-pressed);
  box-sizing: border-box;
}

.auth-input {
  padding: 0 18px;
  color: var(--auth-text);
  font-size: 16px;
  font-weight: 400;
  outline: none;
  font-family: "Poppins", Arial, sans-serif;
}

.auth-input::placeholder,
.password-wrap input::placeholder {
  color: #9ca8a7;
}

.password-wrap {
  position: relative;
  overflow: hidden;
}

.password-wrap input {
  width: 100%;
  height: 100%;
  padding: 0 52px 0 18px;
  border: 0;
  background: transparent;
  color: var(--auth-text);
  font-size: 16px;
  font-family: "Poppins", Arial, sans-serif;
  outline: none;
  box-sizing: border-box;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--auth-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.auth-button {
  width: 74%;
  max-width: 900px;
  height: 58px;
  margin-top: 50px;
  border-radius: 17px;
  border: 1px solid var(--auth-border);
  background: var(--auth-surface);
  box-shadow: var(--auth-raised);
  color: var(--auth-green);
  font-size: 16px;
  font-weight: 500;
  font-family: "Poppins", Arial, sans-serif;
  cursor: pointer;
}

.forgot-link,
.back-login-link {
  margin-top: 18px;
  color: var(--auth-muted);
  font-size: 13px;
  font-weight: 300;
  text-decoration: underline;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: "Poppins", Arial, sans-serif;
}

.message-box {
  width: 74%;
  max-width: 900px;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid var(--auth-border);
  background: var(--auth-surface);
  box-shadow: var(--auth-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  box-sizing: border-box;
  color: var(--auth-text);
  font-size: 13px;
  line-height: 18px;
}

.message-box.error {
  border-color: rgba(230, 87, 87, 0.33);
  background: #f9e8e8;
}

.message-box.success {
  border-color: rgba(1, 185, 111, 0.38);
  background: #e5f6ef;
}

@media (max-width: 720px) {
  .auth-shell {
    padding: 28px;
  }

  .field-group,
  .auth-button,
  .message-box,
  .auth-logo {
    width: 100%;
  }
}

