/* ==========================================================================
   AUTH PAGES
   ========================================================================== */

/*
    Import only from Allauth/account templates.

    Example:
    {% block extra_css %}
      {{ block.super }}
      <link rel="stylesheet" href="{% static 'ptf-tools/css/pages/allauth.css' %}">
    {% endblock extra_css %}
*/

#allauth-template {
    font-size: 13px;
}

#allauth-template .trammel-logo {
    width: 100px;
}

#allauth-template a {
    text-decoration: underline;
}

#allauth-template.allauth-template-in-app {
    position: initial !important;
}

/* unused-css-ignore */
#allauth-template.centering-container {
    text-align: center;
}

#allauth-template .centered-content {
    display: inline-block;
}

#allauth-template .account-page-content {
    max-width: 800px;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#allauth-template .account-page-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 3px;
}

#allauth-template .account-page-title {
    font-size: 1.6em;
    font-weight: 700;
    display: inline;
}

#allauth-form {
    display: flex;
    flex-direction: column;
    gap: 3em;
    width: min(500px, 85vw);
    margin-bottom: 2em;
}

#allauth-form .form-description {
    text-align: left;
}

#allauth-form .form-inputs {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2em;
    margin-bottom: 4em;
    align-items: baseline;
    text-align: left;
}

#allauth-form .form-input {
    width: 100%;
    font-size: 0.9em;
}

#allauth-form .form-input label {
    font-weight: 600;
}

#allauth-form .block-input {
    display: flex;
    flex-direction: column;
}

#allauth-form .block-input>label {
    margin-bottom: 0.2em;
}

#allauth-form .inline-input {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

#allauth-form .inline-input>label {
    margin-right: 1em;
    margin-bottom: 0;
}

#allauth-form .form-inputs input[type="text"],
#allauth-form .form-inputs input[type="email"],
#allauth-form .form-inputs input[type="password"] {
    box-sizing: border-box;
    text-indent: 0.8em;
    height: 3em;
    width: 100%;
}

#allauth-form .form-inputs input[type="checkbox"] {
    box-sizing: border-box;
    margin: 0;
    height: 1.5em;
    width: 1.5em;
}

#allauth-form .form-buttons {
    margin-bottom: 0.5em;
}

#allauth-form .form-buttons button {
    padding: 0.7em 1.5em 0.6em;
    font-size: 1em;
    font-weight: 600;
    background-color: var(--color-primary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    transition: 0.2s ease-out;
}

#allauth-form .form-buttons button:hover {
    background-color: transparent;
    color: var(--color-primary);
}

#form-text a:hover {
    text-decoration: underline;
}

#allauth-form .message-error {
    font-size: 0.8em;
    text-align: left;
    padding: 1em;
    margin-bottom: 1em;
    border: 1px solid var(--allauth-error-border-color);
    border-radius: 4px;
    color: var(--error-color);
    background-color: var(--error-background-color);
}


/* -------------------------------------------------------------------------- */
/* Responsive overrides                                                       */
/* -------------------------------------------------------------------------- */

@media all and (min-width: 576px) {
    #allauth-template .trammel-logo {
        width: 150px;
    }
}

@media all and (min-width: 768px) {
    #allauth-template {
        font-size: 14px;
    }

    #allauth-template .trammel-logo {
        width: 200px;
    }
}

@media all and (min-width: 992px) {
    #allauth-template {
        font-size: 16px;
    }
}