* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.fs18 {
    font-size: 18px;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(217deg, rgb(171 188 226 / 60%), rgba(255, 150, 150, 0) 70.71%), linear-gradient(127deg, rgb(162 163 203 / 60%), rgb(150 189 255 / 0%) 70.71%), linear-gradient(336deg, rgb(170 170 170 / 70%), rgba(180, 0, 0, 0) 70.71%);
}

.card-box {
    background: #ffffff8a;
    backdrop-filter: blur(30px);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px 54px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.card-box h2 {
    margin-bottom: 10px;
}

.card-box p {}

.title {
    margin-bottom: 30px;
    margin-top: 6px;
    font-size: 12px;
    color: #333;
    font-family: var(--font);
}

.card-box input[type="text"],
.card-box input[type="password"],
.card-box select {
    width: 100%;
    appearance: none;
    /* 기본 화살표 제거 */
    padding: 12px 14px;
    border: 1px solid #fff;
    /* 기본 상태 */
    border-radius: 4px;
    font-size: 13px;
    color: #222;
}

.card-box input:focus,
.card-box select:focus {
    border-color: #a9a9a9;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgb(173 173 173 / 25%);
}

.input-group {
    position: relative;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    margin-bottom: 12px;
}

.input-group .form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #fff;
    /* 기본 상태 */
    border-radius: 4px;
    font-size: 13px;
    color: #222;
}

.input-group.error .form-control {
    border-color: #ff8a7e;
}

.input-group.error {
    position: relative;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    margin-bottom: 12px;
    gap: 4px;
}

.error-message {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: -.5px;
    color: var(--font-color07);
    vertical-align: middle;
    word-break: keep-all;
}

.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 4px;
}

label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    letter-spacing: -0.6px;
    color: #333;
    margin-top: -2px;
}

.remember-row input {
    cursor: pointer;
}

.card-box button {
    width: 100%;
    padding: 12px;
    background: #333333;
    border: none;
    color: white;
    font-weight: 400;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 13px;
    margin-top: 14px;
    transition: background-color 0.2s;
}

.card-box button:hover {
    background-color: #545454;
}

.password-reset {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 12px;
    color: #4186ef;
    text-decoration: underline;
    cursor: pointer;
}

.login_error_wrap {
    display: block;
    margin: 8px 0 18px 0;
    float: left;
}

.error_message {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: -.5px;
    color: var(--font-color07);
    vertical-align: middle;
    word-break: keep-all;
    display: flex;
    align-items: center;
    gap: 4px;
}

.signup {
    margin-top: 15px;
    font-size: 14px;
}

.signup a {
    color: #4c68d0;
    text-decoration: none;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(1 0px);
    /* 유리 효과 */
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    color: #444;
    z-index: 1000;
}

/*메일 버튼 누른 후  */
.card-box-mail {
    background: #ffffff8a;
    backdrop-filter: blur(30px);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px 42px;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.card-box-mail button {
    width: 100%;
    padding: 12px;
    background: #333333;
    border: none;
    color: white;
    font-weight: 400;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 13px;
    margin-top: 14px;
    transition: background-color 0.2s;
}

.card-box-mail button:hover {
    background-color: #545454;
}

.card-box-mail>.text {
    margin-bottom: 30px;
    margin-top: 6px;
    font-size: 13px;
    color: #333;
    font-family: var(--font);
}

.card-box-mail>.mail-img {
    margin-bottom: 12px;
}

.card-box-mail>.mail-img i {
    font-size: 48px;
    color: #929292;
}

/* 비밀번호 설정 화면 추가 스타일 */
.card-box input[type="password"] {
    font-size: 14px;
    letter-spacing: 1px; /* ●●●●● 형태를 보기 좋게 */
}

.password-hint {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
    text-align: left;
}
/*Input type=date wrappre*/
.date-wrapper {
  position: relative;
}

.date-wrapper input[type="date"] {
  position: relative;
}

/* placeholder label */
.date-wrapper label {
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
  transition: 0.2s;
  z-index: 1;
  font-size: 14px;
}

/* 값이 있을 경우 label 숨김 */
.date-wrapper input[type="date"]:valid ~ label,
.date-wrapper input[type="date"]:focus ~ label {
  opacity: 0;
}

@media (max-width: 480px) {
    body {
        align-items: flex-start;
        padding: 20px 12px 60px;
        /* 화면 위쪽 조금 띄우고 좌우 여백 */
        margin-top: 60px;
    }

    .card-box {
        background: none;
        padding: 30px 26px;
        border-radius: 16px;
        box-shadow: none;
    }

    .title {
        font-size: 14px;
    }

    .card-box h3 {
        font-size: 21px;
    }

    .card-box input[type="text"],
    .card-box input[type="password"],
    .card-box select {
        font-size: 15px;
        padding: 14px 16px;
    }

    .card-box-mail {
        padding: 28px 20px;
        border-radius: 14px;
        box-shadow: none;
        /* 모바일에서는 그림자 제거 → 깔끔 */
        background: #fff;
        /* blur 대신 단색 */
        max-width: 100%;
    }

    .card-box-mail h3 {
        font-size: 18px;
    }

    .card-box-mail .text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .card-box-mail button {
        font-size: 14px;
        padding: 10px;
        height: 44px;
    }

    .input-group .form-control {
        font-size: 15px;
        padding: 14px 16px;
    }

    .card-box input {
        font-size: 14px;
        padding: 10px;
    }

    .card-box button {
        font-size: 16px;
        padding: 10px;
        height: 48px;
    }

    .error_message {
        font-size: 13px;
    }

    .password-reset {
        font-size: 15px;
    }

    .footer {
        font-size: 13px;
        padding: 8px 0;
    }
    
}