/* Copyright (C) 2019, 2020, 2021, 2022, 2023, 2024, 2025 Dnote contributors
 *
 * This file is part of Dnote.
 *
 * Dnote is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Dnote is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Dnote.  If not, see <https://www.gnu.org/licenses/>.
 */

@use 'theme';
@use 'font';
@use "rem";

.auth-page {
  background: theme.$lighter-gray;
  text-align: center;
  min-height: 100vh;
  padding: 50px 0;

  .auth-button {
    margin-top: 8px;
  }

  .heading {
    color: theme.$black;
    @include font.font-size('2x-large');
    font-weight: 300;
    margin-top: 12px;
    margin-bottom: 0;
  }

  .body {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
  }

  .referrer-flash {
    margin: 24px 0;
  }
  .error-flash {
    margin-bottom: 24px;
  }

  .footer {
    margin-top: 20px;
    line-height: 20px;
  }

  .callout {
    color: #7c7c7c;
    @include font.font-size('small');
  }
  .cta {
    @include font.font-size('small');
  }

  .panel {
    border: 1px solid theme.$border-color;
    background: theme.$white;
    border-radius: 2px;
    padding: 20px;
    text-align: left;
  }

  .auth-button {
    margin-top: 16px;
  }

  .input-row {
    & ~ .input-row {
      margin-top: 12px;
    }
  }
  .label {
    @include font.font-size('small');
    font-weight: 600;
    width: 100%;
    margin-bottom: 0;
  }

  .forgot {
    @include font.font-size('small');
    float: right;
    font-weight: 400;
  }

  &.password-reset-page {
    .email-input {
      margin-top: rem.rem(16px);
    }
  }

  .alert {
    margin-bottom: 1rem;
  }
}
