@charset "UTF-8";

/* 공통 */
#container {
    position: relative;
    min-height: 625px;
    padding: 225px 20px;
    background: #fff;
    overflow: hidden;
}

#container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 230px;
    height: 400px;
    background: url("../../../resources/images/renewal/main_section_bg_img1.png") no-repeat left top;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
}

#container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 230px;
    height: 250px;
    background: url("../../../resources/images/renewal/main_section_bg_img2.png") no-repeat right top;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
}

#container .inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* 로그인 */
#container:not(.mypage-container) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrap {
    position: relative;
    z-index: 1;
    width: 470px;
    max-width: 100%;
    margin: 0 auto;
}

.login-title-area {
    margin-bottom: 40px;
    text-align: center;
}

.login-title-area h2 {
    margin: 0 0 20px;
    font-size: 35px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -1px;
    color: #000;
}

.login-title-area p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: #222;
}

.login-form-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 15px;
}

.login-form-row label {
    width: 100px;
    flex: 0 0 100px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: #000;
}

.login-form-row input {
    width: 343px;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 18px;
    outline: none;
}

.login-form-row input:focus {
    border-color: #003b96;
}

.login-save-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 22px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: #000;
    cursor: pointer;
}

.login-save-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #999;
    border-radius: 4px;
    background: #fff;
}

.login-save-check input:checked {
    border-color: #003b96;
    background: #003b96;
    box-shadow: inset 0 0 0 4px #fff;
}

.login-submit-btn {
    width: 100%;
    height: 59px;
    border: 0;
    border-radius: 10px;
    background: #003b96;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.login-submit-btn:hover {
    background: #002f78;
}

/* 마이페이지 */
#container.mypage-container {
    display: block;
    padding: 112px 20px 128px;
}

#container.mypage-container .inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.mypage-wrap {
    position: relative;
    z-index: 1;
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
}

.mypage-title {
    margin: 0 0 52px;
    text-align: center;
    font-size: 35px;
    line-height: 38px;
    font-weight: 600;
    letter-spacing: -1px;
    color: #000;
}

.mypage-content {
    display: grid;
    grid-template-columns: 384px 1014px;
    gap: 42px;
    align-items: start;
    width: 1440px;
    max-width: 100%;
}

.mypage-section-title {
    margin: 0 0 22px;
    font-size: 24px;
    line-height: 29px;
    font-weight: 600;
    color: #000;
}

.mypage-profile {
    width: 384px;
}

.profile-card {
    width: 384px;
    min-height: 542px;
    padding: 40px 42px 44px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
}

.profile-img {
    width: 260px;
    height: 360px;
    margin: 0 auto 36px;
    overflow: hidden;
}

.profile-img img {
    display: block;
    width: 100%;
    height: 100%;
}

.mypage-info {
    width: 1014px;
}

.info-card {
    width: 1014px;
    min-height: 542px;
    padding: 58px 56px 42px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
}

.info-list {
    margin: 0;
}

.info-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: 22px;
    margin-bottom: 38px;
}

.info-row:last-child {
    margin-bottom: 44px;
}

.info-row dt {
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
    color: #000;
}

.info-row dd {
    margin: 0;
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
    color: #888;
}

.password-btn {
    height: 44px;
    padding: 0 16px;
    border: 1px solid #111;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.mypage-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 44px;
}

.mypage-btn {
    height: 59px;
    border-radius: 10px;
    font-size: 18px;
    line-height: 150%;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
}

.mypage-btn.full {
    width: 100%;
}

.mypage-btn.primary {
    border: 1px solid #003b96;
    background: #003b96;
    color: #fff;
}

.mypage-btn.outline {
    border: 1px solid #003b96;
    background: #fff;
    color: #003b96;
}

/* 비밀번호 변경 모달 */
.mypage-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.mypage-modal.is-active {
    display: block;
}

.mypage-modal-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.password-modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 551px;
    max-width: calc(100% - 40px);
    transform: translate(-50%, -50%);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.password-modal-head {
    position: relative;
    height: 66px;
    padding: 0 72px 0 30px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.password-modal-head h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1;
    font-weight: 600;
    color: #222;
}

.password-modal-close {
    position: absolute;
    top: 50%;
    right: 30px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #222;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-modal-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
}

.password-modal-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.password-modal-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.password-modal-body {
    padding: 35px 41px 48px;
}

.password-form-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 24px;
    margin-bottom: 15px;
}

.password-form-row label {
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
    color: #000;
}

.password-form-row input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 18px;
    outline: none;
}

.password-form-row input:focus {
    border-color: #003b96;
}

.password-submit-btn {
    width: 100%;
    height: 59px;
    border: 1px solid #003b96;
    border-radius: 10px;
    background: #003b96;
    color: #fff;
    font-size: 18px;
    line-height: 150%;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
}

/* 태블릿 */
@media (max-width: 1440px) {
    .mypage-content {
        grid-template-columns: 384px minmax(0, 1fr);
    }

    .mypage-info,
    .info-card {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    #container {
        min-height: 560px;
        padding: 120px 30px;
    }

    #container::before {
        width: 170px;
        height: 300px;
    }

    #container::after {
        width: 170px;
        height: 190px;
    }

    #container.mypage-container {
        padding: 100px 30px 110px;
    }

    .login-wrap {
        width: 470px;
    }

    .login-title-area {
        margin-bottom: 50px;
    }

    .login-title-area h2 {
        font-size: 40px;
    }

    .login-title-area p {
        font-size: 18px;
    }

    .login-form-row label {
        width: 100px;
        flex-basis: 100px;
        font-size: 22px;
    }

    .login-form-row input {
        width: 100%;
    }

    .mypage-wrap {
        width: 100%;
    }

    .mypage-content {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 30px;
        width: 100%;
    }

    .mypage-profile {
        width: 300px;
    }

    .profile-card {
        width: 300px;
        padding: 34px;
    }

    .profile-img {
        width: 100%;
        height: auto;
        aspect-ratio: 260 / 360;
    }

    .info-card {
        padding: 52px 44px 40px;
    }
}

/* 모바일 */
@media (max-width: 768px) {
    #container,
    #container.mypage-container {
        min-height: auto;
        padding: 80px 24px 100px;
        display: block;
    }

    #container::before,
    #container::after {
        display: none;
    }

    .login-wrap {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
    }

    .login-title-area {
        margin-bottom: 38px;
    }

    .login-title-area h2 {
        margin-bottom: 18px;
        font-size: 34px;
        line-height: 1.2;
    }

    .login-title-area p {
        font-size: 16px;
        line-height: 1.6;
        word-break: keep-all;
    }

    .login-form-row {
        display: block;
        margin-bottom: 20px;
    }

    .login-form-row label {
        display: block;
        width: auto;
        margin-bottom: 12px;
        font-size: 19px;
    }

    .login-form-row input {
        display: block;
        width: 100%;
        height: 52px;
        font-size: 16px;
    }

    .login-save-check {
        margin: 0 0 22px;
        font-size: 16px;
    }

    .login-save-check input {
        width: 22px;
        height: 22px;
    }

    .login-submit-btn {
        width: 100%;
        height: 60px;
        border-radius: 8px;
        font-size: 20px;
    }

    .mypage-title {
        margin-bottom: 42px;
        font-size: 34px;
        line-height: 1.2;
    }

    .mypage-content {
        display: block;
        width: 100%;
    }

    .mypage-profile,
    .mypage-info {
        width: 100%;
    }

    .mypage-profile {
        margin-bottom: 40px;
    }

    .mypage-section-title {
        margin-bottom: 16px;
        font-size: 22px;
    }

    .profile-card,
    .info-card {
        width: 100%;
    }

    .profile-card {
        min-height: auto;
        padding: 30px;
    }

    .profile-img {
        max-width: 280px;
        height: auto;
        margin: 0 auto 28px;
        aspect-ratio: 260 / 360;
    }

    .info-card {
        min-height: auto;
        padding: 36px 28px 34px;
    }

    .info-row {
        grid-template-columns: 100px 1fr;
        gap: 20px;
        margin-bottom: 26px;
    }

    .info-row:last-child {
        margin-bottom: 32px;
    }

    .info-row dt,
    .info-row dd {
        font-size: 17px;
    }

    .mypage-btn-group {
        margin-top: 32px;
    }

    .password-modal-box {
        width: calc(100% - 40px);
        border-radius: 16px;
    }

    .password-modal-head {
        height: 60px;
        padding: 0 60px 0 24px;
    }

    .password-modal-head h3 {
        font-size: 22px;
    }

    .password-modal-close {
        right: 24px;
    }

    .password-modal-body {
        padding: 34px 28px 40px;
    }

    .password-form-row {
        display: block;
        margin-bottom: 20px;
    }

    .password-form-row label {
        display: block;
        margin-bottom: 10px;
        font-size: 18px;
    }

    .password-form-row input {
        height: 52px;
    }
}

/* 작은 모바일 */
@media (max-width: 480px) {
    #container,
    #container.mypage-container {
        padding: 56px 2% 50px;
    }

    .login-wrap,
    .mypage-wrap {
        width: 96%;
        max-width: 96%;
    }

    .login-title-area {
        margin-bottom: 34px;
    }

    .login-title-area h2,
    .mypage-title {
        font-size: 30px;
    }

    .login-title-area p {
        font-size: 15px;
    }

    .login-form-row label {
        font-size: 18px;
    }

    .login-form-row input {
        height: 50px;
    }

    .login-submit-btn {
        height: 56px;
        font-size: 19px;
    }

    .profile-card,
    .info-card {
        border-radius: 8px;
    }

    .profile-card {
        padding: 24px;
    }

    .info-card {
        padding: 28px 20px 30px;
    }

    .info-row {
        grid-template-columns: 92px 1fr;
        gap: 14px;
        margin-bottom: 22px;
    }

    .info-row dt,
    .info-row dd {
        font-size: 16px;
    }

    .password-btn {
        height: 40px;
        font-size: 14px;
    }

    .mypage-btn-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mypage-btn {
        height: 54px;
        font-size: 17px;
    }

    .password-modal-box {
        width: 96%;
        max-width: 96%;
    }

    .password-modal-body {
        padding: 28px 20px 34px;
    }

    .password-submit-btn {
        height: 56px;
        font-size: 17px;
    }
}