* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
button,
input {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(circle at top left, rgba(112, 72, 255, 0.13), transparent 34%),
        #fbfbfd;

    color: #15182b;
}

.auth-page {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 32px 18px;
}

.auth-card {
    width: min(100%, 430px);

    padding: 34px;

    background: #ffffff;

    border: 1px solid #e9e9f1;
    border-radius: 18px;

    box-shadow: 0 18px 60px rgba(20, 20, 50, 0.08);
}

.auth-logo {
    display: inline-flex;

    margin-bottom: 34px;

    color: #15182b;

    font-size: 25px;
    font-weight: 750;

    text-decoration: none;
}

.auth-logo::first-letter {
    color: #7048ff;
}

.auth-head {
    margin-bottom: 24px;
}

.auth-head h1 {
    margin-bottom: 9px;

    color: #15182b;

    font-size: 31px;
    line-height: 1.1;
}

.auth-head p {
    color: #888da8;

    font-size: 15px;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form span {
    color: #34394f;

    font-size: 13px;
    font-weight: 650;
}

.auth-form input {
    width: 100%;
    height: 50px;

    padding: 0 15px;

    background: #f7f6fc;

    color: #15182b;

    border: 1px solid transparent;
    border-radius: 12px;

    outline: none;

    font-size: 15px;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-form input::placeholder {
    color: #a3a6bb;
}

.auth-form input:focus {
    background: #ffffff;

    border-color: rgba(112, 72, 255, 0.35);

    box-shadow: 0 0 0 4px rgba(112, 72, 255, 0.08);
}

.auth-message {
    min-height: 20px;

    color: #e04b4b;

    font-size: 13px;
    line-height: 1.4;
}

.auth-message:empty {
    display: none;
}

.auth-form button {
    height: 52px;

    margin-top: 4px;

    background: #7048ff;

    color: #ffffff;

    border: none;
    border-radius: 12px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 10px 24px rgba(112, 72, 255, 0.22);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-form button:hover {
    opacity: 0.92;

    box-shadow: 0 14px 30px rgba(112, 72, 255, 0.27);
}

.auth-form button:active {
    transform: scale(0.98);
}

.auth-switch {
    margin-top: 23px;

    color: #888da8;

    font-size: 14px;
    text-align: center;
}

.auth-switch a {
    color: #7048ff;

    font-weight: 700;

    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 26px 22px;
    }

    .auth-head h1 {
        font-size: 27px;
    }
}
