:root {
  --auth-bg: #eef7db;
  --auth-bg-soft: #f8fbe9;
  --auth-panel: #ffffff;
  --auth-border: #d8e6ad;
  --auth-text: #33352d;
  --auth-muted: #7b7e73;
  --auth-primary: #c6e65a;
  --auth-primary-text: #33352d;
  --auth-shadow: 0 8px 24px rgba(116, 141, 66, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.auth-app {
  margin: 0;
  min-height: 100vh;
  color: var(--auth-text);
  font: 400 16px/1.45 "Manrope", "Segoe UI", system-ui, sans-serif;
  background:
    linear-gradient(rgba(239, 247, 222, 0.86), rgba(239, 247, 222, 0.86)),
    radial-gradient(circle at 20% 20%, rgba(198, 230, 90, 0.12), transparent 36%),
    radial-gradient(circle at 80% 12%, rgba(157, 193, 97, 0.12), transparent 28%),
    linear-gradient(180deg, #f5f7f0 0%, #eef7db 100%);
}

.auth-header {
  width: min(1120px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--auth-border);
  border-radius: 18px;
  box-shadow: var(--auth-shadow);
}

.auth-logo {
  display: inline-flex;
  align-items: flex-start;
  text-decoration: none;
}

.auth-logo__image {
  display: block;
  width: 118px;
  height: auto;
}

.auth-main {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 32px;
}

.auth-card {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 34px 36px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--auth-border);
  border-radius: 28px;
  box-shadow: var(--auth-shadow);
}

.auth-title {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.08;
  font-weight: 800;
}

.auth-subtitle {
  margin: 0 0 26px;
  color: var(--auth-muted);
  font-size: 18px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field > span {
  font-size: 15px;
  color: var(--auth-muted);
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: var(--auth-text);
  font: inherit;
}

.auth-field input::placeholder {
  color: #b2b6aa;
}

.auth-field input:focus {
  border-color: #b6d84a;
  box-shadow: 0 0 0 3px rgba(198, 230, 90, 0.18);
}

.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password-wrap input {
  padding-right: 56px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7d806d;
  cursor: pointer;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.auth-link {
  color: #6a8f18;
  text-decoration: none;
  font-weight: 700;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1px solid var(--auth-border);
  background: #fff;
  color: var(--auth-text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-btn--primary {
  min-width: 220px;
  background: var(--auth-primary);
  border-color: #bddf4f;
  color: var(--auth-primary-text);
}

.auth-btn--google {
  width: 100%;
  max-width: 320px;
  background: #fff;
}

.auth-divider {
  position: relative;
  margin: 26px 0 22px;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #e8eed0;
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--auth-muted);
}

.auth-oauth {
  display: flex;
  justify-content: center;
}

.auth-gicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-muted {
  color: var(--auth-muted);
  font-size: 15px;
}

.auth-center {
  margin: 20px 0 0;
  text-align: center;
}

#auth-card.mode-register .pane-login {
  display: none;
}

#auth-card.mode-register .pane-register {
  display: block;
}

.pane-register[hidden] {
  display: none;
}

.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: var(--auth-text) !important;
  transition: background-color 9999s ease-out 0s;
}

@media (max-width: 760px) {
  .auth-header,
  .auth-main {
    width: calc(100% - 24px);
  }

  .auth-header {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .auth-logo__cm {
    font-size: 40px;
  }

  .auth-logo__unco {
    font-size: 44px;
  }

  .auth-card {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .auth-title {
    font-size: 31px;
  }

  .auth-subtitle {
    margin-bottom: 20px;
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  .auth-header,
  .auth-main {
    width: calc(100% - 16px);
  }

  .auth-header {
    padding: 12px 14px;
  }

  .auth-logo__cm {
    font-size: 34px;
  }

  .auth-logo__unco {
    font-size: 38px;
  }

  .auth-card {
    padding: 22px 16px;
  }

  .auth-title {
    font-size: 26px;
  }

  .auth-subtitle {
    font-size: 15px;
  }

  .auth-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-btn,
  .auth-btn--primary,
  .auth-btn--google {
    width: 100%;
    max-width: none;
  }
}
