*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background-color: #e9e9ea;
    background-image: url("../img/bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: var(
        --font-sans,
        "Figtree",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif
    );
}

.page__card {
    width: 100%;
    max-width: 1200px;
    background-color: #ffffff;
    border-radius: 28px;
    padding: 28px 32px 32px;
    box-shadow: 0 30px 70px rgba(20, 33, 61, 0.18);
}

/* Header */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
}

.site-header__logo-image {
    display: block;
    max-width: 266px;
    width: auto;
}

.auth-actions__list {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-actions__link {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.auth-actions__link--login {
    background-color: #ffffff;
    border-color: #0e61de;
    color: #0e61de;
}

.auth-actions__link--login:hover {
    background-color: #eef5ff;
}

.auth-actions__link--register {
    background-color: #ffd800;

    color: #0e61de;
}

.auth-actions__link--register:hover {
    background-color: #f0c400;
}

/* Hero / illustration */

.page__main {
    display: block;
}

.hero__illustration {
    margin: 0;
    display: block;
    min-height: 420px;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #123a6f 0%, #1c63b8 45%, #2f8ee0 100%);
}

.hero__illustration-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* Responsive */

@media (max-width: 640px) {
    .page {
        padding: 12px;
    }

    .page__card {
        padding: 20px;
        border-radius: 20px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .auth-actions__list {
        width: 100%;
    }

    .auth-actions__link {
        flex: 1 1 auto;
        padding: 10px 18px;
        text-align: center;
    }

    .hero__illustration {
        min-height: 200px;
        padding: 20px;
    }
}
