@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&display=swap");

:root {
    --screen-bg: #f5f5f5;
    --card-width: 342px;
    --font-family-main: "Montserrat", Arial, sans-serif;

    --title-color: #000000;
    --label-color: #a9a9a9;
    --input-text-color: #333333;
    --field-bg: #fffdfd;
    --button-bg: #1f64e5;
    --button-text: #ffffff;
    --focus-outline-color: #d7d7d7;

    --title-font-weight: 400;
    --title-font-size: 16px;
    --title-line-height: 20px;

    --label-font-weight: 400;
    --label-font-size: 10px;
    --label-line-height: 20px;

    --input-font-weight: 400;
    --input-font-size: 12px;
    --input-line-height: 15px;

    --button-font-weight: 500;
    --button-font-size: 12px;
    --button-line-height: 15px;

    --register-font-weight: 400;
    --register-font-size: 10px;
    --register-line-height: 20px;
    --error-color: #dc2626;

    --field-shadow: 0 0 1px rgba(52, 52, 52, 0.2);
    --radius-field: 12px;
    --radius-button: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-family-main);
    background: var(--screen-bg);
    color: var(--title-color);
}

.screen {
    min-height: 100vh;
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    padding: 277px 24px 0;
}

.auth-card {
    width: var(--card-width);
}

.auth-card__title {
    width: 41px;
    margin: 0 auto 24px;
    font-weight: var(--title-font-weight);
    font-size: var(--title-font-size);
    line-height: var(--title-line-height);
    text-align: center;
    color: var(--title-color);
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-form__error {
    margin: 0;
    color: var(--error-color);
    font-size: 10px;
    line-height: 14px;
}

.auth-form__field {
    display: grid;
    gap: 4px;
}

.auth-form__label {
    font-weight: var(--label-font-weight);
    font-size: var(--label-font-size);
    line-height: var(--label-line-height);
    color: var(--label-color);
}

.auth-form__input {
    width: 100%;
    height: 34px;
    border: 0;
    border-radius: var(--radius-field);
    background: var(--field-bg);
    box-shadow: var(--field-shadow);
    padding: 0 12px;
    font-family: var(--font-family-main);
    font-weight: var(--input-font-weight);
    font-size: var(--input-font-size);
    line-height: var(--input-line-height);
    color: var(--input-text-color);
}

.auth-form__input:focus {
    outline: 1px solid var(--focus-outline-color);
}

.auth-form__submit {
    margin-top: 24px;
    width: 100%;
    height: 37px;
    border: none;
    border-radius: var(--radius-button);
    background: var(--button-bg);
    color: var(--button-text);
    font-weight: var(--button-font-weight);
    font-size: var(--button-font-size);
    line-height: var(--button-line-height);
    text-align: center;
    cursor: pointer;
    font-family: var(--font-family-main);
}

.auth-card__register {
    display: block;
    width: 108px;
    margin: 24px auto 0;
    font-weight: var(--register-font-weight);
    font-size: var(--register-font-size);
    line-height: var(--register-line-height);
    text-align: center;
    color: var(--label-color);
    text-decoration: none;
}
