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

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.join-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.join-card {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.join-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.join-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(-50px) translateY(-50px);
    }
}

.join-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.join-header h1 .logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    padding: 4px;
    transition: transform 0.3s ease;
    margin-top: -4px;
}

.join-header h1 .logo:hover {
    transform: scale(1.05);
}

.join-header p {
    font-size: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.header-benefits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 100px;
}

.benefit-item i {
    font-size: 24px;
    color: #fff;
}

.benefit-item span {
    font-size: 12px;
    color: #fff;
    font-weight: 500;
    text-align: center;
}

.benefit-arrow {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .header-benefits {
        flex-direction: column;
        gap: 10px;
    }

    .benefit-arrow {
        transform: rotate(90deg);
    }

    .benefit-item {
        min-width: 120px;
    }
}

.join-body {
    padding: 40px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.input-group {
    position: relative;
}

.input-group .form-control {
    padding-left: 45px;
    padding-right: 16px;
    position: relative;
    z-index: 1;
}

.input-group .form-control.has-toggle {
    padding-left: 16px;
    padding-right: 45px;
}

.input-group.password-field .input-icon {
    display: none !important;
}

.password-field .input-icon {
    display: none !important;
}

/* 비밀번호 필드에서 모든 왼쪽 아이콘 숨김 */
.has-toggle~.input-icon,
.has-toggle+.input-icon,
input[type="password"]~.input-icon,
input[type="password"]+.input-icon {
    display: none !important;
}

/* IE/Edge 브라우저의 기본 비밀번호 표시/숨김 버튼 제거 */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
    z-index: 3;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 16px;
    z-index: 3;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(150, 206, 180, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.feedback-message {
    font-size: 14px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.feedback-message.success {
    color: var(--success-color);
}

.feedback-message.error {
    color: var(--danger-color);
}

.terms-section {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
}

.terms-content h4 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.terms-scroll {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: white;
    margin-bottom: 20px;
}

.terms-text-content {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

.terms-text-content h5 {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.terms-text-content h5:first-child {
    margin-top: 0;
}

.terms-text-content h6 {
    color: var(--dark-color);
    font-size: 14px;
    font-weight: 600;
    margin: 15px 0 8px 0;
}

.terms-text-content p {
    margin: 8px 0;
    text-align: justify;
}

.terms-scroll::-webkit-scrollbar {
    width: 8px;
}

.terms-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.terms-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.terms-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.terms-text {
    font-size: 14px;
    line-height: 1.5;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

.submit-section {
    margin-top: 30px;
}

.btn-join {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-join:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-join:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-join::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-join:hover::before {
    left: 100%;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .join-container {
        padding: 10px;
    }

    .join-body {
        padding: 30px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 20px;
    }

    .join-header h1 {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
    }

    .join-header h1 .logo {
        width: 36px;
        height: 36px;
    }

    .join-header p {
        font-size: 14px;
    }
}

/* 입력 필드 애니메이션 */
.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    transform: translateY(-1px);
}

/* 체크박스 커스텀 스타일 */
.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.custom-checkbox input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: var(--transition);
}

.custom-checkbox input:checked+.checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-checkbox .checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 4px;
    top: 0px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked+.checkmark::after {
    display: block;
}

.logo {
    width: 50%;
    max-width: 200px;
    min-width: 120px;
}