.auth-page {
    background: #ffffff;
    padding: 22px 0 0;
}

.auth-container {
    display: grid;
    grid-template-columns: minmax(420px, 1.12fr) minmax(420px, 0.88fr);
    gap: 56px;
    align-items: stretch;
    max-width: 1500px;
}

.auth-image-block {
    min-width: 0;
}

.auth-image {
    width: 100%;
    height: 690px;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.auth-form-block {
    position: relative;
    min-height: 690px;
    padding: 28px 0 0;
    overflow: hidden;
}

.auth-tabs {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.auth-tab {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 32px;
    color: #111827;
    font-family: var(--font-heading, "Montserrat", Arial, sans-serif);
    font-size: 16px;
    font-weight: 850;
    transition: 0.2s ease;
}

.auth-tab:hover {
    color: #31b8ff;
}

.auth-tab.active {
    background: #31b8ff;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(49, 184, 255, 0.25);
}

.auth-title {
    position: relative;
    z-index: 3;
    margin-bottom: 26px;
    color: #f4a62a;
    font-family: var(--font-heading, "Montserrat", Arial, sans-serif);
    font-size: clamp(62px, 5.4vw, 92px);
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -0.055em;
}

.auth-subtitle {
    position: relative;
    z-index: 3;
    max-width: 520px;
    margin: -8px 0 24px;
    color: #5f6673;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.auth-message {
    position: relative;
    z-index: 4;
    max-width: 560px;
    margin-bottom: 16px;
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fff1f2;
    padding: 14px 18px;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 650;
}

.auth-form {
    position: relative;
    z-index: 3;
    display: flex;
    max-width: 560px;
    flex-direction: column;
    gap: 15px;
}

.auth-input {
    width: 100%;
    height: 68px;
    border: 2px solid #31b8ff;
    border-radius: 17px;
    background: #ffffff;
    padding: 0 24px;
    color: #111827;
    font-size: 19px;
    font-weight: 500;
    outline: none;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    transition: 0.2s ease;
}

.auth-input::placeholder {
    color: #9aa6b8;
}

.auth-input:focus {
    border-color: #1098e7;
    box-shadow: 0 0 0 4px rgba(49, 184, 255, 0.15);
}

.forgot-password {
    align-self: flex-end;
    margin-top: -2px;
    color: #1098e7;
    font-size: 15px;
    font-weight: 750;
}

.auth-submit {
    width: 100%;
    height: 68px;
    border: none;
    border-radius: 17px;
    background: #f4a62a;
    color: #ffffff;
    font-family: var(--font-heading, "Montserrat", Arial, sans-serif);
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(244, 166, 42, 0.28);
    transition: 0.2s ease;
}

.auth-submit:hover {
    background: #ea9a1b;
    transform: translateY(-1px);
}

.auth-divider {
    position: relative;
    z-index: 3;
    display: flex;
    max-width: 560px;
    align-items: center;
    gap: 18px;
    margin: 24px 0 18px;
    color: #31b8ff;
    font-family: var(--font-heading, "Montserrat", Arial, sans-serif);
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #31b8ff;
}

.auth-divider span {
    color: #31b8ff;
}

.auth-register-btn {
    position: relative;
    z-index: 3;
    display: flex;
    width: 100%;
    max-width: 560px;
    height: 62px;
    align-items: center;
    justify-content: center;
    border: 2px solid #31b8ff;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.94);
    color: #31b8ff;
    font-family: var(--font-heading, "Montserrat", Arial, sans-serif);
    font-size: 18px;
    font-weight: 850;
    text-transform: uppercase;
    transition: 0.2s ease;
}

.auth-register-btn:hover {
    background: #31b8ff;
    color: #ffffff;
}

.auth-bottom-text {
    position: relative;
    z-index: 3;
    max-width: 560px;
    margin-top: 18px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 500;
}

.auth-bottom-text a {
    color: #1098e7;
    font-weight: 800;
}

.auth-seagull,
.auth-bridge,
.auth-lighthouse {
    position: absolute;
    pointer-events: none;
    user-select: none;
}

.auth-seagull {
    top: 18px;
    right: 8px;
    z-index: 1;
    width: 150px;
}

.auth-bridge {
    left: 50%;
    bottom: 0;
    z-index: 1;
    width: 660px;
    max-width: 100%;
    transform: translateX(-50%);
}

.auth-lighthouse {
    right: 4px;
    bottom: 0;
    z-index: 1;
    width: 190px;
}

.auth-form-login .auth-form,
.auth-form-login .auth-register-btn,
.auth-form-login .auth-bottom-text {
    padding-bottom: 0;
}

.auth-form-login {
    padding-bottom: 220px;
}

.auth-form-register {
    padding-bottom: 150px;
}

.auth-form-register .auth-form {
    max-width: 560px;
}

@media (max-width: 1280px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .auth-image {
        height: 460px;
    }

    .auth-form-block {
        min-height: auto;
        padding-bottom: 30px;
    }

    .auth-form-login {
        padding-bottom: 175px;
    }

    .auth-form-register {
        padding-bottom: 145px;
    }

    .auth-bridge {
        width: 600px;
    }

    .auth-lighthouse {
        width: 150px;
    }
}

@media (max-width: 760px) {
    .auth-page {
        padding-top: 16px;
    }

    .auth-container {
        padding: 0 16px;
    }

    .auth-image {
        height: 320px;
        border-radius: 26px;
    }

    .auth-tabs {
        gap: 14px;
        margin-bottom: 18px;
    }

    .auth-tab {
        min-height: 44px;
        padding: 0 22px;
        font-size: 15px;
    }

    .auth-title {
        font-size: 48px;
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .auth-input {
        height: 60px;
        font-size: 17px;
    }

    .auth-submit {
        height: 62px;
        font-size: 19px;
    }

    .auth-register-btn {
        height: 56px;
        font-size: 16px;
    }

    .auth-form-login,
    .auth-form-register {
        padding-bottom: 112px;
    }

    .auth-bridge {
        width: 390px;
    }

    .auth-lighthouse {
        display: none;
    }

    .auth-seagull {
        width: 105px;
    }
}