@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:ital,wght@0,700;1,700&display=swap');

:root {
    --cream: #f3ecdf;
    --cream-soft: #fbf7f0;
    --ink: #201d18;
    --muted: #746c61;
    --green: #243529;
    --green-2: #314837;
    --gold: #caa65d;
    --gold-light: #e0c77f;
    --rust: #9a5846;
    --line: rgba(55, 47, 38, .14);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "DM Sans", sans-serif;
    color: var(--cream);
    background: #111812;
}

button,
input {
    font: inherit;
}

.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: clamp(28px, 5vw, 76px);
    overflow: hidden;

    background:
        linear-gradient(90deg, rgba(8,12,9,.10) 0%, rgba(8,12,9,.18) 40%, rgba(8,12,9,.56) 70%, rgba(8,12,9,.78) 100%),
        url("/kepek/login-bg.svg") center center / cover no-repeat;
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 17%, rgba(231,198,124,.12), transparent 27rem),
        linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.30));
}

.brand {
    position: absolute;
    top: clamp(28px, 4vw, 52px);
    left: clamp(28px, 5vw, 76px);
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 13px;
}

.brand__seal {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(224,199,127,.48);
    border-radius: 50%;

    color: var(--gold-light);

    font-family: "Libre Baskerville", serif;
    font-size: 22px;

    box-shadow: inset 0 0 0 5px rgba(224,199,127,.06);
}

.brand__name {
    font-family: "Libre Baskerville", serif;
    font-size: 19px;
    font-weight: 700;
}

.brand__sub {
    margin-top: 3px;

    color: rgba(243,236,223,.48);

    font-size: 9px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-card {
    position: relative;
    z-index: 3;

    width: min(440px, 100%);

    padding: 42px 40px 34px;

    border: 1px solid rgba(255,255,255,.16);
    border-radius: 24px;

    color: var(--ink);

    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,242,231,.94));

    box-shadow:
        0 28px 80px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.75);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    animation: enter .6s cubic-bezier(.2,.8,.2,1) both;
}

.overline {
    margin: 0 0 10px;

    color: #80683d;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.login-card h1 {
    margin: 0;

    font-family: "Libre Baskerville", serif;
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.intro-copy {
    margin: 15px 0 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.65;
}

.alert {
    margin-top: 22px;
    padding: 12px 13px;

    display: flex;
    align-items: flex-start;
    gap: 11px;

    border: 1px solid rgba(154,88,70,.23);
    border-radius: 11px;

    color: #743f34;
    background: #f3dfd8;

    font-size: 12px;
    line-height: 1.45;
}

.alert__icon {
    flex: 0 0 auto;
    font-size: 16px;
}

.alert strong,
.alert span {
    display: block;
}

.alert span {
    margin-top: 1px;
    opacity: .76;
}

.login-form {
    margin-top: 28px;
}

.field {
    display: block;
    margin-bottom: 16px;
}

.field__label {
    display: block;
    margin: 0 0 8px;

    color: #4e473e;

    font-size: 11px;
    font-weight: 700;
}

.field__wrap {
    position: relative;
    display: block;
}

.field__wrap svg {
    position: absolute;
    top: 50%;
    left: 15px;

    width: 18px;
    height: 18px;

    transform: translateY(-50%);

    fill: none;
    stroke: #8f867b;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    pointer-events: none;
}

.field input {
    width: 100%;
    height: 52px;

    padding: 0 15px 0 44px;

    border: 1px solid var(--line);
    border-radius: 11px;
    outline: none;

    color: var(--ink);
    background: rgba(255,255,255,.55);

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.field input::placeholder {
    color: #a29b91;
}

.field input:focus {
    border-color: rgba(117,92,49,.58);
    background: #fffdf8;
    box-shadow: 0 0 0 4px rgba(202,166,93,.11);
}

.login-button {
    width: 100%;
    height: 54px;

    margin-top: 4px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 0;
    border-radius: 11px;

    color: #fffaf1;
    background:
        linear-gradient(135deg, var(--green-2), var(--green));

    box-shadow: 0 10px 22px rgba(31,49,36,.23);

    cursor: pointer;

    font-weight: 700;

    transition:
        transform .16s ease,
        filter .16s ease,
        box-shadow .16s ease;
}

.login-button svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform .16s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 14px 28px rgba(31,49,36,.28);
}

.login-button:hover svg {
    transform: translateX(4px);
}

.login-button:active {
    transform: translateY(0);
}

.microcopy {
    margin-top: 22px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    color: #8d857a;

    font-size: 10px;
}

.microcopy__dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #5d7e60;

    box-shadow: 0 0 0 4px rgba(93,126,96,.11);
}

.quote {
    position: absolute;
    left: clamp(28px, 5vw, 76px);
    bottom: clamp(28px, 4vw, 52px);
    z-index: 2;

    max-width: 440px;

    display: flex;
    gap: 10px;
    align-items: flex-start;

    color: rgba(243,236,223,.65);

    font-size: 12px;
    line-height: 1.5;
}

.quote__mark {
    color: var(--gold-light);

    font-family: "Libre Baskerville", serif;
    font-size: 29px;
    line-height: .9;
}

@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.992);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

@media (max-width: 850px) {

    .login-page {
        align-items: flex-end;
        justify-content: center;

        padding: 110px 22px 24px;

        background:
            linear-gradient(180deg, rgba(8,12,9,.20) 0%, rgba(8,12,9,.32) 43%, rgba(8,12,9,.72) 100%),
            url("/kepek/login-bg.svg") 43% center / cover no-repeat;
    }

    .brand {
        top: 28px;
        left: 24px;
    }

    .login-card {
        width: min(480px, 100%);
        padding: 35px 30px 29px;
    }

    .quote {
        display: none;
    }
}

@media (max-width: 480px) {

    .login-page {
        min-height: 100dvh;

        align-items: flex-end;

        padding: 92px 14px 14px;
    }

    .brand {
        top: 20px;
        left: 18px;
    }

    .brand__seal {
        width: 42px;
        height: 42px;

        font-size: 19px;
    }

    .brand__name {
        font-size: 16px;
    }

    .brand__sub {
        font-size: 7px;
    }

    .login-card {
        padding: 29px 22px 24px;

        border-radius: 20px;
    }

    .login-card h1 {
        font-size: 33px;
    }

    .intro-copy {
        font-size: 12px;
    }
}
