/* ==================================================
   RYUKTO authentication
   Base layout
   ================================================== */

.auth-page {
    min-height: calc(100vh - 80px);
    padding: 88px 24px 105px;
    background:
        radial-gradient(
            circle at 12% 16%,
            rgba(24, 207, 228, .13),
            transparent 28%
        ),
        radial-gradient(
            circle at 87% 76%,
            rgba(23, 107, 255, .12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f7fbff 0%,
            #ffffff 52%,
            #f5f9fd 100%
        );
}

.auth-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(390px, .78fr);
    gap: 72px;
    align-items: center;
}

.auth-intro {
    padding: 30px 0;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #176bff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.auth-eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            #176bff,
            #18cfe4
        );
    border-radius: 999px;
}

.auth-intro h1 {
    margin: 21px 0 0;
    color: #102d4e;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.13;
    letter-spacing: -.055em;
    font-weight: 900;
}

.auth-intro > p {
    max-width: 550px;
    margin: 27px 0 0;
    color: #647c94;
    font-size: 15px;
    line-height: 2;
    font-weight: 600;
}

.auth-feature-list {
    max-width: 555px;
    margin-top: 38px;
    display: grid;
    gap: 10px;
}

.auth-feature-list > div {
    min-height: 59px;
    padding: 10px 17px 10px 11px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #405d78;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(199, 217, 233, .82);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.auth-feature-list span {
    width: 37px;
    height: 37px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #176bff;
    background: #edf5ff;
    border-radius: 9px;
    font-size: 9px;
    font-weight: 900;
}

.auth-feature-list strong {
    font-size: 12px;
    font-weight: 800;
}

.auth-card {
    position: relative;
    padding: 39px;
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #dce8f2;
    border-radius: 24px;
    box-shadow:
        0 28px 75px
        rgba(20, 58, 95, .12);
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 145px;
    height: 145px;
    background:
        radial-gradient(
            circle at top right,
            rgba(24, 207, 228, .18),
            transparent 68%
        );
    pointer-events: none;
}

.auth-card-heading {
    position: relative;
}

.auth-card-heading > span {
    color: #176bff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
}

.auth-card-heading h2 {
    margin: 7px 0 0;
    color: #102d4e;
    font-size: 29px;
    font-weight: 900;
    letter-spacing: -.035em;
}

.auth-card-heading p {
    margin: 10px 0 0;
    color: #7a8ea2;
    font-size: 11px;
    line-height: 1.8;
    font-weight: 600;
}

.auth-alert {
    margin-top: 20px;
    padding: 12px 14px;
    color: #a22b38;
    background: #fff0f2;
    border: 1px solid #f3cbd0;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.6;
}

/* ==================================================
   Authentication form
   ================================================== */

.auth-form {
    margin-top: 27px;
    display: grid;
    gap: 17px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field > span {
    color: #344f69;
    font-size: 10px;
    font-weight: 800;
}

.auth-field input {
    width: 100%;
    height: 51px;
    padding: 0 15px;
    box-sizing: border-box;
    color: #153451;
    background: #f9fbfd;
    border: 1px solid #d7e3ed;
    border-radius: 10px;
    outline: none;
    font: inherit;
    font-size: 12px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.auth-field input::placeholder {
    color: #a8b7c5;
}

.auth-field input:focus {
    background: #ffffff;
    border-color: #74aef5;
    box-shadow:
        0 0 0 4px
        rgba(23, 107, 255, .08);
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667e95;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.auth-remember input {
    width: 15px;
    height: 15px;
    accent-color: #176bff;
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 2px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #176bff,
            #198ff5 55%,
            #18cfe4
        );
    border: 0;
    border-radius: 10px;
    box-shadow:
        0 12px 28px
        rgba(23, 107, 255, .22);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.auth-submit b {
    font-size: 17px;
    font-weight: 600;
}

.auth-switch {
    margin-top: 25px;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    gap: 7px;
    border-top: 1px solid #e4ebf2;
    color: #8193a5;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
}

.auth-switch a {
    color: #176bff;
    font-weight: 900;
    text-decoration: none;
}

.auth-terms {
    margin: 16px 0 0;
    color: #93a2b1;
    font-size: 8px;
    line-height: 1.7;
    text-align: center;
}

@media (hover: hover) and (pointer: fine) {
    .auth-submit:hover {
        transform: translateY(-2px);
        box-shadow:
            0 17px 34px
            rgba(23, 107, 255, .28);
    }

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


/* ==================================================
   Tablet / mobile
   ================================================== */

@media (max-width: 900px) {
    .auth-page {
        padding: 58px 22px 82px;
    }

    .auth-shell {
        max-width: 650px;
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .auth-intro {
        padding: 8px 0;
    }

    .auth-intro h1 {
        font-size: 46px;
    }

    .auth-intro > p {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .auth-page {
        padding:
            38px
            16px
            65px;
    }

    .auth-shell {
        gap: 27px;
    }

    .auth-eyebrow {
        font-size: 9px;
    }

    .auth-intro h1 {
        margin-top: 17px;
        font-size: 36px;
    }

    .auth-intro > p {
        margin-top: 20px;
        font-size: 12px;
        line-height: 1.9;
    }

    .auth-feature-list {
        margin-top: 27px;
    }

    .auth-feature-list > div {
        min-height: 54px;
    }

    .auth-card {
        padding: 27px 20px;
        border-radius: 18px;
    }

    .auth-card-heading h2 {
        font-size: 25px;
    }

    .auth-field input {
        height: 50px;
        font-size: 16px;
    }

    .auth-submit {
        min-height: 51px;
    }

    .auth-switch {
        flex-wrap: wrap;
        line-height: 1.7;
    }
}
