.auth-wrapper .content {
  background: linear-gradient(160deg, #E3EFF9 0%, #F5F6F9 45%, #EEF1F9 100%);
}

.auth-wrapper .page {
  padding: 2.5rem 1rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-card {
  width: 100%;
  max-width: 448px;
  background: #FFFBFE;
  border-radius: 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
  padding: 2rem 1.75rem 2.25rem;
}

@media (min-width: 520px) {
  .auth-card {
    padding: 2.5rem 2.5rem 3rem;
  }
}

.auth-card--center {
  text-align: center;
}

.auth-card--center .auth-card__icon {
  margin-left: auto;
  margin-right: auto;
}

.auth-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #D3E4FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
}

.auth-card__icon .material-icons {
  font-size: 1.625rem;
  color: #001C3B;
}

.auth-card__icon--lg {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.375rem;
}

.auth-card__icon--lg .material-icons {
  font-size: 2.25rem;
}

.auth-card__title {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 2.25rem;
  letter-spacing: 0;
  color: #1C1B1F;
  margin: 0 0 0.375rem;
}

.auth-card__subtitle {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.375rem;
  letter-spacing: 0.025rem;
  color: #49454F;
  margin: 0 0 1.75rem;
}

.md-field {
  position: relative;
  margin-bottom: 1.375rem;
}

.md-field__input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 20px 16px 4px;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;
  color: #1C1B1F;
  background: transparent;
  border: 1px solid #79747E;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s ease, border-width 0.05s ease, padding 0.05s ease;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.md-field__input::-moz-placeholder {
  color: transparent;
}

.md-field__input::placeholder {
  color: transparent;
}

.md-field__input:focus {
  border-color: #1976D2;
  border-width: 2px;
  padding: 19px 15px 3px;
}

.md-field__input:focus ~ .md-field__label {
  color: #1976D2;
}

.md-field__input.is-invalid {
  border-color: #B3261E;
}

.md-field__input.is-invalid ~ .md-field__label {
  color: #B3261E;
}

.md-field__input.is-invalid:focus {
  border-color: #B3261E;
}

.md-field__input.is-invalid:focus ~ .md-field__label {
  color: #B3261E;
}

.md-field__label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.031rem;
  color: #49454F;
  pointer-events: none;
  background: #FFFBFE;
  padding: 0;
  max-width: calc(100% - 2rem);
  white-space: nowrap;
  overflow: hidden;
  transition: top 0.15s ease, transform 0.15s ease, font-size 0.15s ease, padding 0.15s ease, left 0.15s ease, color 0.15s ease;
}

.md-field__input:not(:-moz-placeholder-shown) ~ .md-field__label {
  top: 8px;
  transform: none;
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.04em;
  padding: 0 4px;
  left: 12px;
}

.md-field__input:focus ~ .md-field__label,
.md-field__input:not(:placeholder-shown) ~ .md-field__label {
  top: 8px;
  transform: none;
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.04em;
  padding: 0 4px;
  left: 12px;
}

.md-field__error {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  padding-left: 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.04em;
  color: #B3261E;
}

.md-field__error .material-icons {
  font-size: 0.875rem;
}

.md-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  cursor: pointer;
}

.md-checkbox input[type=checkbox] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: #1976D2;
  cursor: pointer;
}

.md-checkbox label {
  font-size: 0.875rem;
  line-height: 1.375rem;
  letter-spacing: 0.016rem;
  color: #1C1B1F;
  cursor: pointer;
  margin: 0;
}

.md-checkbox label a {
  color: #1976D2;
  text-decoration: none;
}

.md-checkbox label a:hover {
  text-decoration: underline;
}

.md-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 1.5rem;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  letter-spacing: 0.00625rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.md-btn .material-icons {
  font-size: 1.125rem;
}

.md-btn--filled {
  background: #1976D2;
  color: #FFFFFF;
}

.md-btn--filled:hover {
  background: #1667b7;
  box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.3);
  color: #FFFFFF;
  text-decoration: none;
}

.md-btn--filled:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.28);
}

.md-btn--filled:active {
  background: #145ca4;
  box-shadow: none;
}

.md-btn--outlined {
  background: transparent;
  color: #1976D2;
  border: 1px solid #79747E;
}

.md-btn--outlined:hover {
  background: rgba(25, 118, 210, 0.08);
  color: #1976D2;
  text-decoration: none;
}

.md-btn--outlined:focus {
  outline: none;
  border-color: #1976D2;
  background: rgba(25, 118, 210, 0.08);
}

.md-btn--text {
  background: transparent;
  color: #1976D2;
  padding: 0 0.75rem;
}

.md-btn--text:hover {
  background: rgba(25, 118, 210, 0.08);
  color: #1976D2;
  text-decoration: none;
}

.md-btn--text:focus {
  outline: none;
  background: rgba(25, 118, 210, 0.12);
}

.md-btn--full {
  width: 100%;
  height: 48px;
  font-size: 1rem;
  border-radius: 24px;
  margin-top: 0.5rem;
}

.md-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.375rem;
  margin-bottom: 1.375rem;
}

.md-alert .material-icons {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.0625rem;
}

.md-alert--success {
  background: #E6F4EA;
  color: #1E4620;
}

.md-alert--success .material-icons {
  color: #34A853;
}

.md-alert--error {
  background: #F9DEDC;
  color: #410E0B;
}

.md-alert--error .material-icons {
  color: #B3261E;
}

.md-alert--info {
  background: #D3E4FF;
  color: #001C3B;
}

.md-alert--info .material-icons {
  color: #1976D2;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 1rem;
}

.auth-links--between {
  justify-content: space-between;
}

