@charset "UTF-8";

html {
    min-height: 100%;
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(16px, 4vw, 28px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #2f3a45;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

.wrap {
    width: min(100%, 580px);
    display: grid;
    gap: clamp(18px, 4vh, 40px);
}

.logo {
    padding: clamp(18px, 4vw, 28px);
    border-radius: 24px;
    text-align: center;
    border-top: 2px solid orange;
    border-bottom: 2px solid orange;
    background: rgba(255, 255, 255, 0.88);
}

.title_image {
    display: block;
    width: clamp(120px, 40vw, 220px);
    height: auto;
    margin: 0 auto;
}

.logo h1 {
    margin-top: 12px;
    font-size: clamp(2rem, 11vw, 4.5rem);
    line-height: 1;
    background: linear-gradient(145deg, #000000 40%, #fffd0000 50%, #000000 60%);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-animation: gradient 3.5s cubic-bezier(0.13, 1.32, 0.76, 1.86) infinite;
    animation: gradient 3.5s cubic-bezier(0.13, 1.32, 0.76, 1.86) infinite;
    background-size: 230% 100%;
}

@-webkit-keyframes gradient {
    0% {
        background-position: 0;
    }
    100% {
        background-position: 100%;
    }
}

@keyframes gradient {
    0% {
        background-position: 100%;
    }
    100% {
        background-position: 0%;
    }
}

.login_form_div {
    padding: clamp(22px, 6vw, 36px);
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 2px 2px 2px rgb(0 0 0 / 20%), 0 1px 0 rgba(0, 0, 0, 0.05);
}

.lf_id_div, .lf_pw_div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.lf_id_div label, .lf_pw_div label {
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-weight: 700;
}

.lf_id_div input, .lf_pw_div input {
    width: 100%;
    min-height: 48px;
    padding: 10px 2px;
    border: none;
    border-bottom: 1px solid black;
    background: none;
    color: #111111;
    font-size: 1rem;
}

.lf_id_div input:focus, .lf_pw_div input:focus {
    outline: none;
    border-bottom-color: orange;
}

.lf_cb_div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.lf_cb_div label {
    font-weight: bold;
}

.lf_cb_div .checkbox {
    width: 20px;
    height: 20px;
}

.member_check_autologin {
    margin-left: 10px;
}

.lf_inform_div {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lf_inform_div .error,
.lf_inform_div h5 {
    min-height: 1.2em;
    color: red;
    font-size: 0.9rem;
    font-weight: bold;
}

.lf_inform_div .loginbtn {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    background: orange;
    color: white;
    box-shadow: 0 3px 10px -3px #333;
}

.lf_inform_div .loginbtn:hover {
    cursor: pointer;
}

@media screen and (max-width: 380px) {
    body {
        padding: 12px;
    }

    .wrap {
        gap: 14px;
    }

    .logo {
        padding: 16px;
        border-radius: 18px;
    }

    .login_form_div {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .lf_cb_div {
        justify-content: flex-start;
    }

    .member_check_autologin {
        margin-left: 0;
    }
}

@media screen and (max-height: 700px) {
    body {
        align-items: flex-start;
    }

    .wrap {
        gap: 14px;
    }

    .logo {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .logo h1 {
        margin-top: 8px;
    }

    .login_form_div {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .lf_id_div, .lf_pw_div {
        margin-bottom: 14px;
    }

    .lf_cb_div {
        margin-bottom: 18px;
    }
}

/* 다크 테마 용 CSS 속성 */
@media (prefers-color-scheme: dark) {
    body {
        background: #202b38;
        color: #ffffff;
    }

    .logo {
        background: rgba(32, 43, 56, 0.88);
    }

    .logo h1 {
        background: linear-gradient(145deg, #fdea00 40%, #ffffff 50%, #fdea00 60%);
        -webkit-text-fill-color: transparent;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-animation: gradient 3.5s cubic-bezier(0.13, 1.32, 0.76, 1.86) infinite;
        animation: gradient 3.5s cubic-bezier(0.13, 1.32, 0.76, 1.86) infinite;
        background-size: 230% 100%;
    }

    .lf_id_div label, .lf_pw_div label,
    .lf_cb_div label {
        color: white;
    }

    .lf_id_div input, .lf_pw_div input {
        color: white !important;
        background: #444453;
        border-bottom: 1px solid white;
    }

    .login_form_div {
        border: none;
        background: #444453;
        box-shadow: 2px 2px 2px rgb(255 255 255 / 30%), 0 1px 0 rgba(0, 0, 0, 0.05);
    }
}
