* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fafbfc;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #1a202c;
    line-height: 1.6;
}

.header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1002;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: visible;
    border-radius: 0 0 20px 20px;
}

.header-container {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 80px;
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 16px;
    letter-spacing: -0.8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-login {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
}

.btn-login:hover {
    background-color: #8b5cf6;
    color: #ffffff;
    border-color: #8b5cf6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-register {
    border-color: #a855f7;
    color: #a855f7;
    background: rgba(168, 85, 247, 0.05);
}

.btn-register:hover {
    background-color: #a855f7;
    color: #ffffff;
    border-color: #a855f7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 680px;
    margin: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.login-subtitle {
    font-size: 16px;
    color: #718096;
    font-weight: 400;
    line-height: 1.5;
}

/* 사용자 타입 선택 */
.user-type-selection {
    margin-bottom: 30px;
}

.user-type-options {
    display: flex;
    gap: 12px;
    width: 100%;
}

.user-type-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
}

.user-type-option input[type="radio"] {
    display: none;
}

.user-type-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #4a5568;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
}

/* 인플루언서 선택 시 */
.user-type-option input[value="influencer"]:checked + .user-type-label {
    border-color: #8b5cf6;
    background: #8b5cf6;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

/* 광고주 선택 시 */
.user-type-option input[value="advertiser"]:checked + .user-type-label {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.user-type-label:hover {
    border-color: #4a5568;
    background: #f7fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 인플루언서 호버 시 */
.user-type-option input[value="influencer"]:checked + .user-type-label:hover {
    background: #7c3aed;
    border-color: #7c3aed;
}

/* 광고주 호버 시 */
.user-type-option input[value="advertiser"]:checked + .user-type-label:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.user-type-label i {
    font-size: 16px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    letter-spacing: 0.025em;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    color: #1a202c;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: #4a5568;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-input.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.remember-me label {
    font-size: 14px;
    color: #7f8c8d;
    cursor: pointer;
}

.forgot-password {
    font-size: 14px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    color: #2980b9;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    background-color: #2d3748;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 24px;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.3);
}

.login-btn:hover {
    background-color: #1a202c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 55, 72, 0.4);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.3);
}

.login-btn:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.divider {
    text-align: center;
    margin: 32px 0;
    position: relative;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e2e8f0;
    z-index: 1;
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.register-link {
    text-align: center;
    margin-top: 24px;
}

.register-link a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #2d3748;
    text-decoration: underline;
}

.success-message {
    background-color: #f0fff4;
    color: #22543d;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #9ae6b4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.error-message-global {
    background-color: #fed7d7;
    color: #742a2a;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #feb2b2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.password-toggle {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.password-toggle-btn:hover {
    color: #4a5568;
    background: #f7fafc;
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 10px;
    }
    
    .login-container {
        margin: 10px;
        padding: 32px 24px;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .user-type-label {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .login-btn {
        padding: 16px;
        font-size: 15px;
    }
}
