@charset "UTF-8";


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Malgun Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f3a 50%, #2d3561 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 20px 0;
}

/* 배경 애니메이션 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: slideDown 20s linear infinite;
}

@keyframes slideDown {
    from { transform: translateY(-100px); }
    to { transform: translateY(0); }
}

/* 플로팅 아이콘 */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 24px;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 20%; right: 10%; animation-delay: 2s; }
.floating-icon:nth-child(3) { top: 50%; left: 8%; animation-delay: 4s; }
.floating-icon:nth-child(4) { top: 70%; right: 15%; animation-delay: 1s; }
.floating-icon:nth-child(5) { bottom: 20%; right: 30%; animation-delay: 3s; }
.floating-icon:nth-child(6) { bottom: 40%; left: 25%; animation-delay: 5s; }
.floating-icon:nth-child(7) { top: 30%; right: 40%; animation-delay: 6s; }
.floating-icon:nth-child(8) { bottom: 10%; left: 40%; animation-delay: 7s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-25px) rotate(180deg); opacity: 0.6; }
}

/* 메인 컨테이너 */
.signup-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    z-index: 10;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 로고 섹션 */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	text-decoration: none;
    color: white;
	margin-bottom: 20px;
}

.logo-icon {
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, #00ffff, #0080ff);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 900;
	color: var(--dark-bg);
}

.logo-text {
	font-size: 20px;
	font-weight: 700;
	color: #00ffff;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 255, 0.6); }
}

.welcome-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    font-size: 14px;
    color: #999;
}

/* 진행 단계 */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.step-number.active {
    background: linear-gradient(135deg, #ff6b35, #ff8f00);
    color: white;
}

.step-number.completed {
    background: #00ffff;
    color: #0a0e1a;
}

.step-number.inactive {
    background: #e9ecef;
    color: #999;
}

.step-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.step-divider {
    width: 30px;
    height: 2px;
    background: #e9ecef;
}

.step-divider.completed {
    background: #00ffff;
}

/* 폼 스타일 */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0a0e1a;
    margin-bottom: 8px;
}

.required {
    color: #ff6b35;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #00ffff;
    background: white;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.form-input.valid {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.05);
}

.form-input.invalid {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.05);
}

.form-input::placeholder {
    color: #999;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.verify-btn {
    padding: 12px 16px;
    background: #00ffff;
    color: #0a0e1a;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.verify-btn:hover {
    background: #0080ff;
    color: white;
}

.verify-btn:disabled {
    background: #e9ecef;
    color: #999;
    cursor: not-allowed;
}

.timer {
    font-size: 14px;
    color: #ff6b35;
    font-weight: 600;
    min-width: 50px;
}

.validation-message {
    font-size: 12px;
    margin-top: 5px;
    padding-left: 5px;
}

.validation-message.valid {
    color: #00ffff;
}

.validation-message.invalid {
    color: #ff6b35;
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-fill.weak {
    background: #ff6b35;
    width: 25%;
}

.strength-fill.medium {
    background: #ff8f00;
    width: 50%;
}

.strength-fill.strong {
    background: #00ffff;
    width: 100%;
}

.strength-text {
    font-size: 12px;
    color: #666;
}

/* 체크박스 및 동의 */
.agreements {
    margin: 20px 0;
}

.agreement-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.agreement-item:hover {
    background: #e9ecef;
}

.checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox.checked {
    background: #00ffff;
    border-color: #00ffff;
}

.checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0a0e1a;
    font-weight: bold;
    font-size: 14px;
}

.agreement-content {
    flex: 1;
}

.agreement-title {
    font-size: 14px;
    font-weight: 600;
    color: #0a0e1a;
    margin-bottom: 5px;
    cursor: pointer;
}

.agreement-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.view-detail {
    color: #00ffff;
    text-decoration: none;
    font-weight: 500;
}

.view-detail:hover {
    color: #0080ff;
}

.all-agree {
    border: 2px solid #00ffff;
    background: rgba(0, 255, 255, 0.05);
}

.all-agree .agreement-title {
    color: #00ffff;
    font-size: 16px;
}

/* 버튼 스타일 */
.signup-btn {
    background: linear-gradient(135deg, #ff6b35, #ff8f00);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.signup-btn::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;
}

.signup-btn:hover::before {
    left: 100%;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

.signup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 하단 링크 */
.bottom-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.login-link {
    font-size: 14px;
    color: #666;
}

.login-link a {
    color: #00ffff;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.login-link a:hover {
    color: #0080ff;
}

/* 로딩 스피너 */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 성공 메시지 */
.success-message {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    color: #00ffff;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
}

/* 반응형 */
@media (max-width: 768px) {
    .signup-container {
        margin: 10px;
        padding: 30px;
        max-width: none;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-indicator {
        margin-bottom: 20px;
    }
    
    .step-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .signup-container {
        padding: 25px;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 16px; /* iOS zoom 방지 */
    }
}
