@import './colors.css';
@import '../font/import.css';

* {
    box-sizing: border-box;
}

html,
body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    background: var(--colors-background-primary);
    color: var(--colors-text-primary);
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    overflow-y: auto;
}

body {
    display: flex;
    flex-direction: column;
}

#page {
    flex: 1;
}

#page > .content-wrapper {
    width: 23.5rem;
    margin-inline: auto;
    margin-bottom: 2rem;
    border-radius: 4px;
    box-shadow: 0 1px 4px 1px var(--colors-shadow);
    background-color: var(--colors-white);
    padding: 2.5rem 2rem;
}

#page > .go-back-wrapper {
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
    margin-inline: auto;
    width: 23.5rem;
    height: 1.5rem;
}

#page > .content-wrapper > form,
#page > .content-wrapper > .form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
}

#page > .content-wrapper > .identity-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#page > .content-wrapper > .identity-container > h1 {
    margin-top: 2rem;
    text-align: center;
}

#page > .content-wrapper > .identity-container > .identity-wrapper {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    width: 100%;
}

#page > .content-wrapper > .identity-container > .identity-wrapper > img {
    height: 2.5rem;
}

#page > .content-wrapper > .identity-container > .identity-wrapper > label {
    margin-left: auto;
    color: var(--colors-black);
    font-style: italic;
    font-weight: bold;
}

#page > .content-wrapper > .terms-of-use-container {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.43;
    text-align: center;
    color: var(--colors-text-secondary);
    display: flex;
    flex-direction: column;
}

#page > .content-wrapper > .terms-of-use-container > a {
    color: inherit;
}

header {
    background-color: var(--colors-white);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 4px 8px 1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
    padding: 1rem 1.5rem 1rem 1.25rem;
    z-index: 900;
    position: relative;
}

header > .identity {
    display: flex;
    align-items: center;
}

header > .identity > .logo {
    height: 2.5rem;
}

header > .identity > .title {
    margin-left: 3.625rem;
    color: var(--colors-black);
    font-style: italic;
    font-size: 1.125rem;
    font-weight: bold;
}

footer {
    background-color: var(--colors-white);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.08), 0 5px 30px rgba(0, 0, 0, 0.05);
    color: #646973;
    padding: 1.3125rem 1rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

h1,h2,h3 {
    padding: 0;
    margin: 0;
}

.headline-1 {
    font-size: 2.2rem;
    font-weight: 900;
}

.headline-2 {
    font-size: 1.5rem;
    font-weight: 900;
}

.headline-3 {
    font-size: 1.25rem;
    font-weight: 900;
}

.headline-4 {
    font-size: 1.125rem;
}

.body-large-bold {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    color: var(--colors-text-primary);
}

.body-large {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--colors-text-primary);
}

.body-medium {
    font-size: 0.875rem;
    line-height: 1.43;
    color: var(--colors-text-primary);
}

.alert-container {
    padding-top: 1rem;
    text-align: center;
}

.alert-container > .alert-error {
    color: var(--colors-error);
}

.alert-container > .alert-success {
    color: var(--colors-success);
}

.instruction {
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    color: var(--colors-text-primary);
    margin: unset;
}

.instruction:not(:first-of-type) {
    margin-top: 1.25rem;
}

.instruction > a {
    color: inherit;
}

/* ---- ---- ----  ---- ---- ----  ---- ---- ---- */
/* ---- ---- ----  COMPONENTS CSS  ---- ---- ---- */

/* DbButton*/
button.db-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    border: none;
    background-color: var(--colors-white);
    border-radius: 4px;
    height: 3.25rem;
    font-family: inherit;
    font-size: inherit;
}

button.db-button:hover,
button.db-button:hover * {
    cursor: pointer;
}

button.db-button.primary {
    background-color: var(--colors-button-primary);
    color: var(--colors-button-primary-text);
    font-weight: bold;
}

button.db-button.primary:hover {
    background-color: var(--colors-button-primary-hover);
}

button.db-button.secondary {
    background-color: var(--colors-button-secondary);
    border: 1px solid var(--colors-text-primary);
}

button.db-button.secondary:hover {
    background-color: var(--colors-button-secondary-hover);
}
/* ---- ---- ---- ---- */

/* DbInput*/
.db-input {
    position: relative;
}

.db-input > input {
    /* 
        box sizing with correct width
        so we can take advantege of the padding for the correct
        label and placeholder position, as well as the default
        browser input-highlighting 
    */
    padding: 1rem 2.5rem 0.5rem 1rem;
    width: calc(100% - 3.5rem);
    box-sizing: unset;

    margin-top: 0.125rem;
    border: none;
    background-color: transparent;
    height: 3.5rem;
    max-height: 1.5rem;
    line-height: 1.5;
    color: var(--colors-text-primary);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-style: inherit;
    border-bottom: 1px solid var(--colors-text-primary);
    background-color: var(--colors-input-background);
    border-radius: 4px;
}

.db-input > input::placeholder {
    line-height: 1.5;
    color: var(--colors-text-secondary);
}

.db-input > label {
    margin-top: 0.5rem;
    margin-bottom: -1.25rem;
    margin-left: 1rem;
    display: block;
    height: 1rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.33;
    color: var(--colors-text-secondary);
}

.db-input > label.hidden {
    color: transparent;
}

.db-input > .clear{
    position: absolute;
    right: 1rem;
    top: 1.25rem;
}

.db-input.password {
    padding-right: 4.5rem;
    width: calc(100% - 5.5rem);
}

.db-input > .show-password {
    position: absolute;
    right: 2.75rem;
    top: 1.2rem;
}

.db-input > .clear:hover,
.db-input > .show-password:hover {
    cursor: pointer;
}
/* ---- ---- ---- ---- */

/* DbTeaserLink*/
a.db-teaser-link {
    min-height: 1rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    column-gap: 0.375rem;
}

a.db-teaser-link:hover,
a.db-teaser-link:hover * {
    cursor: pointer;
}

a.db-teaser-link > label {
    line-height: 1.5;
    color: var(--colors-text-primary);
    border-bottom: 1px solid rgb(from var(--colors-text-primary) r g b / 50%);
    margin-right: auto;
}
/* ---- ---- ---- ---- */

/* ---- ---- ----  ---- ---- ----  ---- ---- ---- */
/* ---- ---- ----  ---- ---- ----  ---- ---- ---- */

/* ---- ---- ----  ---- ---- ----  ---- ---- ---- */
/* ---- ---- ----    MOBILE CSS    ---- ---- ---- */
@media (max-width: 768px) {
    html,
    body {
        background: var(--colors-white);
    }
    
    #page > .content-wrapper {
        flex: 1;
        margin: unset;
        width: unset;
        height: 100%;
        padding-top: 1.5rem;
        box-shadow: unset;
    }

    #page > .go-back-wrapper {
        width: unset;
        margin-inline: unset;
        padding-left: 0.5rem;
        margin-top: 0.5rem;
    }

    header > .identity >.title {
        font-size: 0.75rem;
        max-width: 7rem;
    }
}
/* ---- ---- ----  ---- ---- ----  ---- ---- ---- */
/* ---- ---- ----  ---- ---- ----  ---- ---- ---- */