/* Copyright (C) 2019 Monomax Software Pty Ltd
 *
 * 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/>.
 */

// shared with '/join' and '/password-reset' page
.auth-page {
  background: #f3f3f3;
  text-align: center;
  min-height: 100vh;
  padding: 50px 0;

  .logo {
    width: 90px;
  }

  .heading {
    color: #252833;
    font-size: 2.7rem;
    font-weight: 300;
    margin-top: 18px;
  }

  .referrer-alert {
    margin-top: 20px;
  }

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

    .auth-callout {
      color: #7c7c7c;
      font-size: 1.4rem;
    }
    .auth-cta {
      color: #5c7ded;
    }
  }

  .auth-panel {
    border: 1px solid #ddd;
    background: #ffffff;
    border-radius: 2px;
    margin-top: 20px;
    padding: 20px;
  }

  .oauth-button {
    border: 1px solid #ddd;
    color: #6a6a6a;
    width: 100%;
    justify-content: inherit;
    background: white;

    &:hover {
      background: #fefefe;
      box-shadow: 0 0 4px 2px #f3f3f3;
    }

    & + .oauth-button {
      margin-top: 8px;
      margin-left: 0;
    }

    .oauth-button-content {
      display: flex;
      // width: 100%;
    }

    .oauth-text {
      flex: 1;
    }
  }

  .provider-logo {
    width: 18px;
    height: 18px;
  }

  .auth-button {
    margin-top: 15px;
  }
  .auth-form {
    text-align: left;
  }
  .input-row {
    & ~ .input-row {
      margin-top: 8px;
    }
  }
  .label {
    font-weight: 600;
    font-size: 1.5rem;
  }
}

// specific to '/login page'
.login-page {
  .label-row {
    display: flex;
    justify-content: space-between;
  }
  .reset-cta {
    font-size: 1.3rem;
    margin-right: 4px;
  }
}
