:root {
    --sail-blue: #024d8e;
    --sail-blue-light: #03549b;
    --sail-red: #e51b23;
    --text: #17202a;
    --muted: #6e7781;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    background: #fff;
}

a {
    color: var(--sail-blue);
}

.auth-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.auth-header {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 10px;
}

.auth-header img {
    display: block;
    width: 250px;
    height: auto;
}

.auth-main {
    display: grid;
    min-height: 70vh;
    flex: 1;
    place-items: center;
    padding: 42px 20px 64px;
    background:
        linear-gradient(135deg, rgba(2, 77, 142, .055), transparent 45%),
        #f5f6f7;
}

.auth-card {
    width: min(100%, 580px);
    padding: 42px 48px 46px;
    border-top: 7px solid var(--sail-blue);
    background: #fff;
    box-shadow: 0 10px 34px rgba(0, 40, 75, .16);
}

.auth-card-compact {
    width: min(100%, 540px);
}

.auth-card-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 32px;
}

.auth-card-heading h1 {
    margin: 2px 0 0;
    color: var(--sail-blue);
    font-size: clamp(28px, 5vw, 38px);
    line-height: 1.05;
}

.auth-eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.auth-sail-mark {
    position: relative;
    display: block;
    width: 53px;
    height: 72px;
    flex: 0 0 53px;
    transform: skew(-11deg);
}

.auth-sail-mark span {
    position: absolute;
    bottom: 0;
    display: block;
    background: var(--sail-blue);
    border-radius: 100% 0 90% 0;
}

.auth-sail-mark span:first-child {
    left: 0;
    width: 22px;
    height: 54px;
}

.auth-sail-mark span:last-child {
    right: 0;
    width: 27px;
    height: 72px;
}

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

.auth-form > label {
    margin-top: 8px;
    color: #20262d;
    font-size: 15px;
    font-weight: 600;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #c9ced3;
    border-radius: 2px;
    background: #fff;
    color: #17202a;
    font: inherit;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.auth-form input:focus {
    border-color: var(--sail-blue);
    box-shadow: 0 0 0 3px rgba(2, 77, 142, .12);
}

.auth-password-field {
    position: relative;
}

.auth-password-field input {
    padding-right: 50px;
}

.auth-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sail-blue);
    cursor: pointer;
    place-items: center;
}

.auth-password-toggle svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 10px 0 18px;
    font-size: 14px;
}

.auth-options a,
.auth-back {
    color: var(--sail-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-options a:hover,
.auth-back:hover {
    text-decoration: underline;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-remember input {
    width: 17px;
    height: 17px;
    accent-color: var(--sail-blue);
}

.auth-submit {
    min-height: 52px;
    padding: 14px 24px;
    border: 0;
    border-radius: 2px;
    background: var(--sail-blue);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .18s, transform .18s;
}

.auth-submit:hover {
    background: rgba(2, 77, 142, .56);
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-message {
    margin: 0 0 20px;
    padding: 13px 15px;
    border-left: 4px solid;
    font-size: 14px;
    line-height: 1.45;
}

.auth-message-success {
    border-color: #248446;
    background: #e9f6ed;
}

.auth-message-error {
    border-color: var(--sail-red);
    background: #fff0f0;
}

.auth-intro {
    margin: -10px 0 18px;
    color: var(--muted);
    line-height: 1.55;
}

.auth-back {
    display: inline-block;
    margin-top: 24px;
}

.auth-footer {
    background: var(--sail-blue);
    color: #fff;
}

.auth-footer-inner {
    display: grid;
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 18px;
    grid-template-columns: 1fr 1fr;
    gap: 18px 60px;
    font-size: 14px;
}

.auth-footer nav,
.auth-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-footer a {
    color: #fff;
    text-decoration: none;
}

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

.auth-footer p {
    margin: 4px 0 0;
    grid-column: 1 / -1;
    text-align: center;
    font-size: 12px;
}

@media (max-width: 620px) {
    .auth-header {
        padding-top: 14px;
    }

    .auth-header img {
        width: 210px;
    }

    .auth-main {
        min-height: auto;
        padding: 28px 14px 42px;
    }

    .auth-card {
        padding: 32px 24px 36px;
    }

    .auth-card-heading {
        gap: 15px;
    }

    .auth-sail-mark {
        width: 43px;
        height: 60px;
        flex-basis: 43px;
    }

    .auth-sail-mark span:first-child {
        width: 18px;
        height: 45px;
    }

    .auth-sail-mark span:last-child {
        width: 22px;
        height: 60px;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .auth-footer-inner {
        grid-template-columns: 1fr;
    }

    .auth-footer p {
        grid-column: auto;
        text-align: left;
    }
}
