@import url('./common/layout.css');
@import url('../component/header/header.css');

.loginNotice { max-width: 90%; padding: 12px; margin: 12px 0; border-radius: 0; background: #eee8fb; color: #655180; font-size: 14px; line-height: 1.6; text-align: center; }
.loginNotice[hidden] { display: none; }

/*
 * 기능 : 프로필 사진 미리보기와 업로드 안내
 * 설명 : 가입·수정 화면에서 사진과 저장 상태를 표시하며 기존 각진 UI를 유지합니다.
 */
.signupProfilePreview { width: 100px; height: 100px; object-fit: cover; }
.profileStatus { max-width: 100%; font-size: 13px; line-height: 1.6; color: #46564a; overflow-wrap: anywhere; }
#removeSignupProfile { align-self: flex-start; padding: 6px 10px; cursor: pointer; }
#removeSignupProfile[hidden] { display: none; }

.title {
    font-size: 32px;
    line-height: 38.41px;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #000000;
    margin-bottom: 67px;
}

article {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 35px;
}

.inputBox {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    width: 100%;

    position: relative;
}

.inputBox label {
    font-size: 15px;
    line-height: 17px;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #000000;
}
.inputBox input {
    font-size: 14px;
    color: #000000;
    line-height: 16.8px;
    width: 100%;
    padding: 8px 10px;

    border: 1px solid #000000;
    border-radius: 0;

    background-color: transparent;
}

.inputBox input[type='text'] {
    flex-grow: 1; /* 입력 필드가 가능한 많은 공간을 차지하도록 함 */
    padding-right: 10px; /* 오른쪽에 Lottie 애니메이션을 위한 공간 확보 */
}
.inputBox .lottie {
    position: absolute;
    right: 10px; /* 입력 필드 오른쪽 끝에서 10px 떨어진 위치 */
    top: 50%; /* 상단에서 50% 위치 */

    width: 20px; /* Lottie 애니메이션 크기, 필요에 따라 조정 */
    height: 20px; /* Lottie 애니메이션 크기, 필요에 따라 조정 */
}

.inputBox input[type='file'] {
    border: none;
    padding: 8px 0px;
}

.inputBox > .helperText {
    position: absolute;
    bottom: -4px;
    transform: translate(0, 100%);

    color: #f00;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.buttons {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 42px;
}
.buttons p {
    position: absolute;
    top: -4px;
    transform: translate(0, -100%);
    color: #f00;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.buttons button,
a {
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    height: 33px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.buttons button {
    background-color: #aca0eb;
    border-radius: 0;
    border: none;

    color: #ffffff;
    font-weight: 700;
}

.buttons a {
    color: #000000;
    font-weight: 400;
}

.deleteFile {
    cursor: pointer;
    padding-left: 10px;
    color: red;
}

#toastContainer {
    /* position: fixed;
    top: 0;
    right: 0; */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding: 20px;
    z-index: 100;
}

.toastMessage {
    background-color: #7f6aee;
    color: #ffffff;
    padding: 10px 20px;
    margin-bottom: 5px;
    display: inline-block;
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: 0;
}

.profileUploadContainer {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 100px;
    overflow: visible; /* X 버튼이 바깥으로 나오도록 */
    border-radius: 0;
}

.profileRemoveButton {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 0;
    border: 2px solid #fff;
    background-color: #ff4d4f;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.profileRemoveButton:hover {
    background-color: #ff1a1a;
    transform: scale(1.1);
}

.profileUploadButton {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.55);
    color: white;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    border-radius: 0;
    font-size: 12px;
    z-index: 2;
}
#profilePreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
