﻿:root {
    color: #3f4942;
    background: #dcebf3;
    font-synthesis: none
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    min-height: 100svh
}

.page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.landscape {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url('../images/background/golf-background.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(8px);
    transform: scale(1.06);
}

    .landscape:after {
        content: "";
        position: absolute;
        inset: 0;
        /*background: radial-gradient(ellipse 60% 24% at 42% 99%,#d5ebf7 0%,transparent 100%),radial-gradient(ellipse 45% 13% at 14% 78%,#edf2e0 0%,transparent 100%)*/
    }

.login-card {
    position: relative;
    width: min(100%,380px);
    padding: 32px 51px 44px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(32,57,38,.15),0 0 7px rgba(40,57,48,.10);
    animation: enter .5s ease-out both
}

@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(13px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    color: #155c36;
    margin-bottom: 26px
}

h1 {
    font-weight: 700;
    font-size: 32px;
    letter-spacing: -.6px;
    text-align: center;
    margin: 0 0 4px;
    color: #404840
}

.subtitle {
    text-align: center;
    color: #8a938d;
    font-weight:400;
    font-size: 16px;
    margin: 0 0 30px
}

.field {
    margin-bottom: 15px
}

    .field label {
        display: block;
        font-size: 14px;
        color: #145B2F;
        font-weight: 700;
        margin-bottom: 7px
    }

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 39px;
    border-radius: 5px;
    background: #f3f4f3;
    border: 1px solid transparent;
    transition: border-color .2s,box-shadow .2s
}

    .input-wrap:focus-within {
        border-color: #659b78;
        box-shadow: 0 0 0 3px rgba(50,112,72,.10)
    }

    .input-wrap svg {
        width: 16px;
        height: 16px;
        stroke: #195d38;
        fill: none;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex: none;
        margin-left: 12px
    }

input[type=text], input[type=password] {
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 12px;
    color: #314a38;
    padding: 0 11px;
    min-width: 0
}

input::placeholder {
    color: #b4b9b6;
    font-family: 'Manrope','Anuphan', Arial, sans-serif;
}

.eye {
    display: grid;
    place-items: center;
    width: 40px;
    height: 38px;
    border: 0;
    cursor: pointer;
    background: transparent;
    border-radius: 5px
}

    .eye svg {
        margin: 0;
        stroke: #6c7770
    }

    .eye:hover svg {
        stroke: #1a5e39
    }

.options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 14px 0 21px
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a3aca5;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap
}

    .remember input {
        appearance: none;
        width: 13px;
        height: 13px;
        margin: 0;
        border-radius: 4px;
        background: #e8ebe8;
        cursor: pointer;
        position: relative
    }

        .remember input:checked {
            background: #347651
        }

            .remember input:checked:after {
                content: "✓";
                color: white;
                position: absolute;
                font-size: 10px;
                left: 3px;
                top: -1px
            }

.forgot {
    border: 0;
    padding: 0;
    background: none;
    color: #1c673c;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap
}

    .forgot:hover {
        text-decoration: underline
    }

.submit {
    height: 42px;
    width: 100%;
    border: 0;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(20, 91, 47, 0.74) 16.94%, rgba(0, 34, 13, 0.74) 83.06%);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    position: relative;
    transition: filter .2s,transform .2s
}

    .submit:hover {
        filter: brightness(1.08);
        transform: translateY(-1px)
    }

    .submit:active {
        transform: translateY(0)
    }

    .submit:disabled {
        opacity: .7;
        cursor: wait
    }

    .submit svg {
        position: absolute;
        right: 15px;
        top: 13px;
        width: 16px;
        height: 16px;
        fill: none;
        stroke: white;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round
    }

.notice {
    font-size: 11px;
    line-height: 1.5;
    margin-top: 12px;
    text-align: center;
    min-height: 0
}

    .notice.error {
        color: #ba4848
    }

    .notice.success {
        color: #287347
    }

.reset-view {
    display: none
}

    .reset-view h1 {
        font-size: 21px
    }

    .reset-view .subtitle {
        line-height: 1.6;
        margin-bottom: 27px
    }

.back {
    display: block;
    margin: 17px auto 0;
    background: none;
    border: 0;
    font-size: 12px;
    color: #276642;
    cursor: pointer
}

.login-card.reset .login-view {
    display: none
}

.login-card.reset .reset-view {
    display: block
}

@media(max-width:480px) {
    .page {
        padding: 20px 12px
    }

    .login-card {
        padding: 27px 38px 33px;
        border-radius: 17px;
        width: min(80vw,320px)
    }

    .brand {
        margin-bottom: 24px
    }

    h1 {
        font-size: 19px
    }

    .subtitle {
        font-size: 10px;
        margin-bottom: 27px
    }

    .field {
        margin-bottom: 12px
    }

        .field label {
            font-size: 9px;
            margin-bottom: 5px
        }

    .input-wrap {
        height: 31px
    }

        .input-wrap svg {
            width: 13px;
            height: 13px;
            margin-left: 9px
        }

        .input-wrap input {
            font-size: 10px;
            padding: 0 8px
        }

    .eye {
        height: 30px;
        width: 32px
    }

        .eye svg {
            margin: 0
        }

    .options {
        margin: 10px 0 17px
    }

    .remember, .forgot {
        font-size: 9px
    }

    .submit {
        height: 34px;
        font-size: 10px
    }

        .submit svg {
            width: 14px;
            height: 14px;
            top: 10px;
            right: 12px
        }
}

@media(prefers-reduced-motion:reduce) {
    *, *:before, *:after {
        animation: none !important;
        transition: none !important
    }
}

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    margin: 12px 0;
    background: #fff1f0;
    border: 1px solid #ffc9c5;
    border-radius: 6px;
    color: #c0392b;
    font-size: 12px;
    line-height: 1.5;
}

    .login-error svg {
        flex-shrink: 0;
    }

    .icon{
        padding: 10px;
    }

/* Tablet: Portrait & Landscape */
/*@media (min-width: 768px) and (max-width: 1199px) {
    .login-card {
        width: 600px;
        max-width: 90%;
    }
}*/