/* 회원가입 페이지 전용 스타일 */

/* 컨테이너 배경 설정 */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background-image: url('/static/images/loginimage.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 20px;
}

/* 회원가입 섹션 */
.registration-section {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 회원가입 박스 */
.registration-box {
    width: 100%;
    background-color: white;
    padding: 48px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* 제목 */
.registration-box h1 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 28px;
    font-weight: 500;
    color: #333;
}

/* 입력 그룹 */
.input-group {
    margin-bottom: 14px;
}

/* 입력 필드 */
.registration-box input,
.registration-box select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.registration-box input:hover,
.registration-box select:hover {
    border-color: #999;
}

.registration-box input:focus,
.registration-box select:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.1);
}

/* 토글 스위치 섹션 */
.toggle-section {
    margin: 20px 0 24px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.toggle-group > span:first-child {
    flex: 1;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.toggle-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* 토글 스위치 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #2196F3;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-description {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* 가입 완료 버튼 */
.signup-btn {
    width: 100%;
    padding: 14px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.signup-btn:hover {
    background-color: #555;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.signup-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 카카오 버튼 */
.kakao-btn {
    width: 100%;
    padding: 14px;
    background-color: #FEE500;
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.kakao-btn:hover {
    background-color: #FDD835;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.3);
}

.kakao-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(254, 229, 0, 0.3);
}

.kakao-icon {
    flex-shrink: 0;
}

/* 태블릿 (768px ~ 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 40px 20px;
    }

    .registration-section {
        max-width: 550px;
    }

    .registration-box {
        padding: 44px 36px;
    }
}

/* 모바일 (~ 767px) */
@media (max-width: 767px) {
    .container {
        padding: 20px 16px;
        background-attachment: scroll;
    }

    .registration-section {
        max-width: 100%;
    }

    .registration-box {
        padding: 36px 28px;
        border-radius: 10px;
    }

    .registration-box h1 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .registration-box input,
    .registration-box select {
        font-size: 16px; /* iOS 자동 줌 방지 */
        padding: 11px 14px;
    }

    .toggle-group > span:first-child {
        font-size: 13px;
    }

    .toggle-description {
        font-size: 11px;
    }

    .signup-btn,
    .kakao-btn {
        padding: 13px;
        font-size: 15px;
    }
}

/* 작은 모바일 (~ 480px) */
@media (max-width: 480px) {
    .container {
        padding: 16px 12px;
    }

    .registration-box {
        padding: 32px 24px;
    }

    .registration-box h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .toggle-group {
        gap: 12px;
    }

    .toggle-group > span:first-child {
        font-size: 12px;
    }

    .toggle-switch {
        width: 40px;
        height: 22px;
    }

    .toggle-slider:before {
        height: 16px;
        width: 16px;
    }

    input:checked + .toggle-slider:before {
        transform: translateX(18px);
    }
}
