/* Tampilan login tema HUT ke-65 Unsrat (view: modules/login/views/tampilan/login-hut65.php) */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    background-color: #fdfdfd;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #2b2b33;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

p,
form {
    margin: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* halaman: gelombang bg selalu menempel di bagian bawah */
.hut-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    background: #fdfdfd url(../img/login/hut-65/bg-hut-65.jpg) no-repeat center bottom;
    background-image: image-set(url(../img/login/hut-65/bg-hut-65.webp) type("image/webp"), url(../img/login/hut-65/bg-hut-65.jpg) type("image/jpeg"));
    background-size: 100% auto;
}

/* navbar */
.hut-nav {
    position: relative;
    z-index: 10;
}

.hut-nav__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 10px 0;
}

.hut-nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.hut-nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 2.5px 0;
    border-radius: 2px;
    background-color: #1d265e;
    transition: transform .2s ease, opacity .2s ease;
}

.hut-nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hut-nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hut-nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* menu di HP tampil sebagai panel di bawah tombol */
.hut-nav__menu {
    display: none;
    position: absolute;
    top: 56px;
    left: 12px;
    right: 12px;
    padding: 8px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(29, 38, 94, .18);
}

.hut-nav__menu.is-open {
    display: block;
}

.hut-nav__links a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: #2b2b33;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
}

.hut-nav__links a:hover,
.hut-nav__links a:focus {
    background-color: #f7eef1;
}

.hut-nav__sosial {
    display: flex;
    margin-top: 4px;
    padding: 6px 6px 2px;
    border-top: 1px solid #eeeef2;
}

.hut-nav__sosial a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    color: #2b2b33;
}

.hut-nav__sosial svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* konten */
.hut-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4px 16px 20px;
}

.hut-hero {
    margin-bottom: 22px;
    text-align: center;
}

.hut-hero picture {
    display: block;
}

.hut-hero__logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: 128px;
    height: clamp(96px, 18vh, 150px);
    height: clamp(96px, 18svh, 150px);
    margin: 0 auto;
}

.hut-hero__judul {
    margin-top: 10px;
    padding-left: .16em;
    color: #1d265e;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.2;
}

.hut-hero__judul span {
    color: #c32800;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hut-hero__judul span {
        background-image: linear-gradient(90deg, #c32800, #e4701d);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

/* nama universitas sudah ada di logo INSPIRE, jadi hanya tampil di desktop */
.hut-hero__sub {
    display: none;
}

.hut-card {
    width: 100%;
    max-width: 440px;
    padding: 24px 20px 20px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(48, 40, 110, .1), 0 2px 6px rgba(48, 40, 110, .05);
    text-align: center;
}

.hut-card__logo {
    display: block;
    width: 250px;
    max-width: 86%;
    height: auto;
    margin: 0 auto 20px;
}

/* pesan dari flashdata error_message, juga dipakai untuk pesan berhasil */
.hut-pesan {
    margin-bottom: 14px;
    padding: 10px 14px;
    background-color: #f8eef1;
    border: 1px solid #ecd3db;
    border-radius: 10px;
    color: #6d1d31;
    font-size: 14px;
    line-height: 1.45;
}

.hut-input {
    position: relative;
    margin-bottom: 12px;
}

.hut-input svg {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    fill: none;
    stroke: #8a8a96;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

/* font-size minimal 16px supaya Safari iOS tidak zoom saat input disentuh */
.hut-input input {
    display: block;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 16px 0 52px;
    font-family: inherit;
    font-size: 16px;
    color: #2b2b33;
    background-color: #fff;
    border: 1px solid #d9d9e2;
    border-radius: 12px;
    outline: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.hut-input input::placeholder {
    color: #8a8a96;
    opacity: 1;
}

.hut-input input:focus {
    border-color: #902940;
    box-shadow: 0 0 0 3px rgba(144, 41, 64, .15);
}

.hut-captcha {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.hut-tombol {
    display: block;
    width: 100%;
    height: 52px;
    margin-top: 16px;
    padding: 0;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #fff;
    background-color: #902940;
    border: 0;
    border-radius: 26px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .2s ease;
}

.hut-tombol:hover,
.hut-tombol:focus {
    background-color: #7a2236;
}

.hut-tombol:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(144, 41, 64, .3);
}

.hut-tautan {
    margin-top: 12px;
    line-height: 1.2;
}

.hut-tautan a {
    display: inline-block;
    padding: 6px 8px;
    color: #902940;
    font-size: 15px;
    text-decoration: underline;
}

.hut-footer {
    flex-shrink: 0;
    padding: 12px 16px 16px;
    color: #3a3a44;
    font-size: 12.5px;
    text-align: center;
}

/* widget reCAPTCHA lebarnya tetap 304px, dikecilkan di HP yang sangat sempit */
@media (max-width: 359.98px) {
    .hut-captcha .g-recaptcha {
        transform: scale(.86);
        transform-origin: center top;
        margin-bottom: -11px;
    }
}

@media (min-width: 576px) {
    .hut-hero__logo {
        height: clamp(120px, 20vh, 190px);
        height: clamp(120px, 20svh, 190px);
    }

    .hut-hero__judul {
        font-size: 20px;
    }

    .hut-card {
        max-width: 460px;
        padding: 32px 32px 26px;
    }

    .hut-card__logo {
        width: 280px;
    }
}

/* desktop: dua kolom, logo HUT di kiri dan form di kanan */
@media (min-width: 992px) {
    .hut-page {
        background-size: cover;
    }

    .hut-nav__inner {
        padding: 26px 48px 0;
    }

    .hut-nav__toggle {
        display: none;
    }

    .hut-nav__menu {
        display: flex;
        align-items: center;
        position: static;
        padding: 0;
        background: none;
        border-radius: 0;
        box-shadow: none;
    }

    .hut-nav__links {
        display: flex;
        align-items: center;
    }

    .hut-nav__links li + li {
        margin-left: 36px;
    }

    .hut-nav__links a {
        padding: 6px 0;
        border-radius: 0;
        color: #222;
        font-size: 12.5px;
    }

    .hut-nav__links a:hover,
    .hut-nav__links a:focus,
    .hut-nav__links .hut-nav__utama {
        background: none;
        text-decoration: underline;
    }

    .hut-nav__sosial {
        margin: 0 0 0 26px;
        padding: 0;
        border: 0;
    }

    .hut-nav__sosial li + li {
        margin-left: 18px;
    }

    .hut-nav__sosial a {
        width: 40px;
        height: 40px;
        color: #222;
    }

    .hut-nav__sosial svg {
        width: 24px;
        height: 24px;
    }

    .hut-main {
        flex-direction: row;
        justify-content: space-between;
        padding: 16px 48px 24px;
    }

    .hut-hero {
        flex: 0 1 50%;
        margin: 0;
        padding-right: 32px;
    }

    .hut-hero picture {
        max-width: 560px;
        margin: 0 auto;
    }

    .hut-hero__logo {
        height: auto;
        max-height: 50vh;
    }

    .hut-hero__judul {
        margin-top: 18px;
        padding-left: .14em;
        font-size: 30px;
        font-size: clamp(28px, 2.5vw, 42px);
        letter-spacing: .14em;
    }

    .hut-hero__sub {
        display: block;
        margin-top: 8px;
        padding-left: .26em;
        color: #1d265e;
        font-size: 17px;
        font-size: clamp(15px, 1.35vw, 23px);
        font-weight: 700;
        letter-spacing: .26em;
        line-height: 1.3;
    }

    .hut-card {
        flex: 0 0 44%;
        max-width: 560px;
        padding: 56px 56px 44px;
        border-radius: 24px;
    }

    .hut-card__logo {
        width: 76%;
        max-width: 420px;
        margin-bottom: 44px;
    }

    .hut-input {
        margin-bottom: 18px;
    }

    .hut-input svg {
        left: 22px;
        width: 26px;
        height: 26px;
        margin-top: -13px;
    }

    .hut-input input {
        height: 64px;
        padding-left: 64px;
        font-size: 18px;
        border-radius: 14px;
    }

    .hut-tombol {
        height: 62px;
        margin-top: 26px;
        font-size: 20px;
        border-radius: 31px;
    }

    .hut-tautan {
        margin-top: 22px;
    }

    .hut-tautan a {
        font-size: 17px;
    }

    .hut-footer {
        padding: 16px 16px 22px;
        font-size: 14px;
    }
}

/* desktop dengan layar pendek, misalnya laptop 1366x768 */
@media (min-width: 992px) and (max-height: 760px) {
    .hut-nav__inner {
        padding-top: 16px;
    }

    .hut-card {
        padding: 36px 44px 28px;
    }

    .hut-card__logo {
        margin-bottom: 28px;
    }

    .hut-input {
        margin-bottom: 14px;
    }

    .hut-input input {
        height: 56px;
    }

    .hut-tombol {
        height: 56px;
        margin-top: 20px;
        border-radius: 28px;
    }

    .hut-tautan {
        margin-top: 14px;
    }

    .hut-footer {
        padding-bottom: 14px;
    }
}
